SystemdLifetime Sınıf
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Başlatılan ve durdurulan uygulama için bildirim iletileri sağlar ve konsol günlüğünü sistemli biçimde yapılandırılır.
public ref class SystemdLifetime : IDisposable, Microsoft::Extensions::Hosting::IHostLifetime
[System.Runtime.Versioning.UnsupportedOSPlatform("android")]
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
[System.Runtime.Versioning.UnsupportedOSPlatform("ios")]
[System.Runtime.Versioning.UnsupportedOSPlatform("maccatalyst")]
[System.Runtime.Versioning.UnsupportedOSPlatform("tvos")]
public class SystemdLifetime : IDisposable, Microsoft.Extensions.Hosting.IHostLifetime
public class SystemdLifetime : IDisposable, Microsoft.Extensions.Hosting.IHostLifetime
[<System.Runtime.Versioning.UnsupportedOSPlatform("android")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("ios")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("maccatalyst")>]
[<System.Runtime.Versioning.UnsupportedOSPlatform("tvos")>]
type SystemdLifetime = class
interface IHostLifetime
interface IDisposable
type SystemdLifetime = class
interface IHostLifetime
interface IDisposable
Public Class SystemdLifetime
Implements IDisposable, IHostLifetime
- Devralma
-
SystemdLifetime
- Öznitelikler
- Uygulamalar
Oluşturucular
| Name | Description |
|---|---|
| SystemdLifetime(IHostEnvironment, IHostApplicationLifetime, ISystemdNotifier, ILoggerFactory) |
Yeni SystemdLifetime bir örnek başlatır. |
Yöntemler
| Name | Description |
|---|---|
| Dispose() |
Yönetilmeyen kaynakları serbest bırakma, serbest bırakma veya sıfırlama ile ilişkili uygulama tanımlı görevleri gerçekleştirir. |
| StopAsync(CancellationToken) |
Zaman uyumsuz olarak konağı durdurur ve kapatır. Bu yöntem' den çağrılır StopAsync(CancellationToken). |
| WaitForStartAsync(CancellationToken) |
Devam etmeden önce başlatma işlemi tamamlanana kadar zaman uyumsuz olarak bekler. Bu yöntem, başında çağrılır StartAsync(CancellationToken). Bu, bir dış olay tarafından sinyal alınana kadar başlatmayı geciktirmek için kullanılabilir. |