예제 #1
0
 public DequeueJob(IMessageQueue <TWorkItem> workItemQueue, TaskHandlerActivator taskHandlerActivator, ILogger <DequeueJob <TWorkItem> > logger, IConfiguration configuration)
 {
     _workItemQueue        = workItemQueue ?? throw new ArgumentNullException(nameof(workItemQueue));
     _taskHandlerActivator = taskHandlerActivator ?? throw new ArgumentNullException(nameof(taskHandlerActivator));
     _logger        = logger ?? throw new ArgumentNullException(nameof(logger));
     _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
 }
예제 #2
0
 public ScheduledJob(TaskHandlerActivator taskHandlerActivator, IScheduledTaskStore <TState> scheduledTaskStore, ILogger <ScheduledJob <TTaskHandler, TState> > logger, IConfiguration configuration)
 {
     _taskHandlerActivator = taskHandlerActivator ?? throw new ArgumentNullException(nameof(taskHandlerActivator));
     _scheduledTaskStore   = scheduledTaskStore ?? throw new ArgumentNullException(nameof(scheduledTaskStore));
     _logger        = logger ?? throw new ArgumentNullException(nameof(logger));
     _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration));
 }