public BackgroundHostedService(ILoggerFactory loggerFactory, IServiceProvider serviceProvider, HostedWorkerConfiguration configuration)
 {
     logger = loggerFactory?.CreateLogger <BackgroundHostedService>() ??
              throw new ArgumentNullException(nameof(loggerFactory));
     this.serviceProvider = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider));
     this.configuration   = configuration ?? throw new ArgumentNullException(nameof(configuration));
 }
Beispiel #2
0
 public HostedWorkerHealth(HostedWorkerConfiguration hostedWorkerConfiguration)
 {
     this.hostedWorkerConfiguration = hostedWorkerConfiguration ?? throw new ArgumentNullException(nameof(hostedWorkerConfiguration));
 }