public WorkQueueProcessorBackgroundService( [NotNull] IBus bus, [NotNull] IWorkQueueRepositoryManager workQueueRepositoryManager, [NotNull] ILogger logger, [NotNull] IContainer container, [NotNull] IConfiguration configuration) { _Bus = bus; _WorkQueueRepositoryManager = workQueueRepositoryManager ?? throw new ArgumentNullException(nameof(workQueueRepositoryManager)); _Logger = logger ?? throw new ArgumentNullException(nameof(logger)); _Container = container ?? throw new ArgumentNullException(nameof(container)); _Configuration = configuration.Element <WorkQueueProcessorConfiguration>("WorkQueues").WithDefault(() => new WorkQueueProcessorConfiguration()); }
public WorkQueue([NotNull] IWorkQueueRepositoryManager workQueueRepositoryManager, [NotNull] IBus bus) { _WorkQueueRepositoryManager = workQueueRepositoryManager; _Bus = bus ?? throw new ArgumentNullException(nameof(bus)); }