SystemdLifetime Konstruktor

Definition

Initierar en ny SystemdLifetime instans.

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)

Parametrar

environment
IHostEnvironment

Information om värden.

applicationLifetime
IHostApplicationLifetime

Det IHostApplicationLifetime som spårar tjänstens livslängd.

systemdNotifier
ISystemdNotifier

Att ISystemdNotifier meddela Systemd om tjänststatus.

loggerFactory
ILoggerFactory

Används ILoggerFactory för att instansiera livslängdsloggaren.

Gäller för