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)); }
public BackgroundSender(BackgroundQueue <IWebHookWorkItem> webHooksQueue) { _webHooksQueue = webHooksQueue ?? throw new ArgumentNullException(nameof(webHooksQueue)); }