Exemple #1
0
 public QueuedHostedService(IServiceProvider services, ILogger <QueuedHostedService <TWorkItem> > logger, BackgroundQueue <TWorkItem> webHooksQueue)
 {
     _services      = services ?? throw new ArgumentNullException(nameof(services));
     _logger        = logger ?? throw new ArgumentNullException(nameof(logger));
     _webHooksQueue = webHooksQueue ?? throw new ArgumentNullException(nameof(webHooksQueue));
 }
Exemple #2
0
 public BackgroundSender(BackgroundQueue <IWebHookWorkItem> webHooksQueue)
 {
     _webHooksQueue = webHooksQueue ?? throw new ArgumentNullException(nameof(webHooksQueue));
 }