Bagikan melalui


SystemdLifetime Konstruktor

Definisi

Menginisialisasi instans baru 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)

Parameter

environment
IHostEnvironment

Informasi tentang host.

applicationLifetime
IHostApplicationLifetime

IHostApplicationLifetime yang melacak masa pakai layanan.

systemdNotifier
ISystemdNotifier

ISystemdNotifier untuk memberi tahu Systemd tentang status layanan.

loggerFactory
ILoggerFactory

yang ILoggerFactory digunakan untuk membuat instans pencatat masa pakai.

Berlaku untuk