public DefaultInjestionService(
     TriggerService triggerService,
     IEventQueueStore eventQueueStore,
     ILogger <DefaultInjestionService> logger)
 {
     this.triggerService  = triggerService ?? throw new ArgumentNullException(nameof(triggerService));
     this.eventQueueStore = eventQueueStore ?? throw new ArgumentNullException(nameof(eventQueueStore));
     this.logger          = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public HostedProcessingService(
     TriggerService triggerService,
     IServiceProvider serviceProvider,
     ILogger <HostedProcessingService> logger,
     IOptions <EventServerOptions> options)
 {
     this.triggerService  = triggerService ?? throw new ArgumentNullException(nameof(triggerService));
     this.serviceProvider = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider));
     this.logger          = logger ?? throw new ArgumentNullException(nameof(logger));
     this.options         = options ?? throw new ArgumentNullException(nameof(options));
     logger.LogInformation(nameof(HostedProcessingService) + " is created.");
 }