SystemdNotifier.Notify(ServiceState) 方法
定义
向 systemd 发送通知。Sends a notification to systemd.
public:
virtual void Notify(Microsoft::Extensions::Hosting::Systemd::ServiceState state);
public void Notify (Microsoft.Extensions.Hosting.Systemd.ServiceState state);
abstract member Notify : Microsoft.Extensions.Hosting.Systemd.ServiceState -> unit
override this.Notify : Microsoft.Extensions.Hosting.Systemd.ServiceState -> unit
Public Sub Notify (state As ServiceState)
参数
- state
- ServiceState
要通知的服务状态。The service state to notify.