语言

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
特性
实现

构造函数

名称 说明
SystemdNotifier()

实例化新的 SystemdNotifier 并设置通知套接字路径。

属性

名称 说明
IsEnabled

返回是否将 systemd 配置为接收服务通知。

方法

名称 说明
Notify(ServiceState)

将通知发送到 systemd。

适用于