SystemdLifetime クラス

定義

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

public ref 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")]
public class SystemdLifetime : IDisposable, Microsoft.Extensions.Hosting.IHostLifetime
type SystemdLifetime = class
    interface IHostLifetime
    interface IDisposable
[<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
Public Class SystemdLifetime
Implements IDisposable, IHostLifetime
継承
SystemdLifetime
属性
実装

コンストラクター

SystemdLifetime(IHostEnvironment, IHostApplicationLifetime, ISystemdNotifier, ILoggerFactory)

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

メソッド

Dispose()

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

Equals(Object)

指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
StopAsync(CancellationToken)

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

ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)
WaitForStartAsync(CancellationToken)

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

適用対象