SystemdLifetime クラス

定義

アプリケーションの起動と停止に関する通知メッセージを提供し、コンソールのログ記録を systemd 形式に構成します。

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
継承
SystemdLifetime
属性
実装

コンストラクター

名前 説明
SystemdLifetime(IHostEnvironment, IHostApplicationLifetime, ISystemdNotifier, ILoggerFactory)

新しい SystemdLifetime インスタンスを初期化します。

メソッド

名前 説明
Dispose()

アンマネージド リソースの解放、解放、またはリセットに関連付けられているアプリケーション定義のタスクを実行します。

StopAsync(CancellationToken)

ホストを非同期的に停止してシャットダウンします。 このメソッドは、 StopAsync(CancellationToken)から呼び出されます。

WaitForStartAsync(CancellationToken)

開始操作が完了するまで非同期的に待機してから続行します。 このメソッドは、 StartAsync(CancellationToken)の先頭で呼び出されます。 これを使って、外部イベントによって通知されるまで開始を遅らせることができます。

適用対象