語言

SystemdNotifier 類別

定義

提供支援通知系統服務狀態。

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 發送通知。

適用於