SystemdLifetime 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供應用程式啟動和停止的通知訊息,並將控制台記錄設定為 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() |
執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。 |
Equals(Object) |
判斷指定的物件是否等於目前的物件。 (繼承來源 Object) |
GetHashCode() |
做為預設雜湊函式。 (繼承來源 Object) |
GetType() |
取得目前執行個體的 Type。 (繼承來源 Object) |
MemberwiseClone() |
建立目前 Object 的淺層複製。 (繼承來源 Object) |
StopAsync(CancellationToken) |
非同步停止和關閉主機。 此方法從 StopAsync(CancellationToken) 呼叫。 |
ToString() |
傳回代表目前物件的字串。 (繼承來源 Object) |
WaitForStartAsync(CancellationToken) |
以非同步方式等候,直到啟動作業完成後再繼續。 這個方法會在 StartAsync(CancellationToken) 開頭處呼叫。 這可用來將啟動延遲到外部事件發出訊號為止。 |
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應