SystemdLifetime 构造函数

定义

初始化一个新 SystemdLifetime 实例。

public:
 SystemdLifetime(Microsoft::Extensions::Hosting::IHostEnvironment ^ environment, Microsoft::Extensions::Hosting::IHostApplicationLifetime ^ applicationLifetime, Microsoft::Extensions::Hosting::Systemd::ISystemdNotifier ^ systemdNotifier, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public SystemdLifetime (Microsoft.Extensions.Hosting.IHostEnvironment environment, Microsoft.Extensions.Hosting.IHostApplicationLifetime applicationLifetime, Microsoft.Extensions.Hosting.Systemd.ISystemdNotifier systemdNotifier, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.Extensions.Hosting.Systemd.SystemdLifetime : Microsoft.Extensions.Hosting.IHostEnvironment * Microsoft.Extensions.Hosting.IHostApplicationLifetime * Microsoft.Extensions.Hosting.Systemd.ISystemdNotifier * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.Extensions.Hosting.Systemd.SystemdLifetime
Public Sub New (environment As IHostEnvironment, applicationLifetime As IHostApplicationLifetime, systemdNotifier As ISystemdNotifier, loggerFactory As ILoggerFactory)

参数

environment
IHostEnvironment

有关主机的信息。

applicationLifetime
IHostApplicationLifetime

跟踪 IHostApplicationLifetime 服务生存期的 。

systemdNotifier
ISystemdNotifier

ISystemdNotifier 通知 Systemd 有关服务状态的 。

loggerFactory
ILoggerFactory

ILoggerFactory用于实例化生存期记录器的 。

适用于