Udostępnij za pośrednictwem


SystemdLifetime Konstruktor

Definicja

Inicjuje nowe SystemdLifetime wystąpienie.

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)

Parametry

environment
IHostEnvironment

Informacje o hoście.

applicationLifetime
IHostApplicationLifetime

Element IHostApplicationLifetime , który śledzi okres istnienia usługi.

systemdNotifier
ISystemdNotifier

Element do powiadamiania ISystemdNotifier Systemd o stanie usługi.

loggerFactory
ILoggerFactory

Używany ILoggerFactory do tworzenia wystąpienia rejestratora okresu istnienia.

Dotyczy