public AppDomainLifetime(IOptions <ConsoleLifetimeOptions> options, IHostEnvironment environment, IHostApplicationLifetime applicationLifetime, ILoggerFactory loggerFactory) { var obj = options?.Value; this.options = obj ?? throw new ArgumentNullException(nameof(options)); this.environment = environment ?? throw new ArgumentNullException(nameof(environment)); this.applicationLifetime = applicationLifetime ?? throw new ArgumentNullException(nameof(applicationLifetime)); this.logger = loggerFactory.CreateLogger <AppDomainLifetime>(); }
public ConsoleLifetimeOptions GetTypeFromPackage() { var options = new ConsoleLifetimeOptions(); return(options); }