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
- 特性
- 实现
构造函数
| 名称 | 说明 |
|---|---|
| SystemdNotifier() |
实例化新的 SystemdNotifier 并设置通知套接字路径。 |
属性
| 名称 | 说明 |
|---|---|
| IsEnabled |
返回是否将 systemd 配置为接收服务通知。 |
方法
| 名称 | 说明 |
|---|---|
| Notify(ServiceState) |
将通知发送到 systemd。 |