public SystemdLifetime(IHostEnvironment environment, IHostApplicationLifetime applicationLifetime, ISystemdNotifier systemdNotifier, ILoggerFactory loggerFactory) { ThrowHelper.ThrowIfNull(environment); ThrowHelper.ThrowIfNull(applicationLifetime); ThrowHelper.ThrowIfNull(systemdNotifier); Environment = environment; ApplicationLifetime = applicationLifetime; SystemdNotifier = systemdNotifier; Logger = loggerFactory.CreateLogger("Microsoft.Hosting.Lifetime"); }
public SystemdLifetime(IHostEnvironment environment, IHostApplicationLifetime applicationLifetime, ISystemdNotifier systemdNotifier, ILoggerFactory loggerFactory) { Environment = environment ?? throw new ArgumentNullException(nameof(environment)); ApplicationLifetime = applicationLifetime ?? throw new ArgumentNullException(nameof(applicationLifetime)); SystemdNotifier = systemdNotifier ?? throw new ArgumentNullException(nameof(systemdNotifier)); Logger = loggerFactory.CreateLogger("Microsoft.Hosting.Lifetime"); }