SystemdNotifier 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供支援通知系統服務狀態。
public ref class SystemdNotifier : Microsoft::Extensions::Hosting::Systemd::ISystemdNotifier
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public class SystemdNotifier : Microsoft.Extensions.Hosting.Systemd.ISystemdNotifier
public class SystemdNotifier : Microsoft.Extensions.Hosting.Systemd.ISystemdNotifier
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
type SystemdNotifier = class
interface ISystemdNotifier
type SystemdNotifier = class
interface ISystemdNotifier
Public Class SystemdNotifier
Implements ISystemdNotifier
- 繼承
-
SystemdNotifier
- 屬性
- 實作
建構函式
| 名稱 | Description |
|---|---|
| SystemdNotifier() |
實例化一個新 SystemdNotifier 接字並設定通知套接字路徑。 |
屬性
| 名稱 | Description |
|---|---|
| IsEnabled |
回傳 systemd 是否設定為接收服務通知。 |
方法
| 名稱 | Description |
|---|---|
| Notify(ServiceState) |
會向 systemd 發送通知。 |