Exemplo n.º 1
0
 public DeliveryController(
     IMediator mediator,
     IDeliveryQueries deliveryQuery)
     : base(mediator)
 {
     _deliveryQuery = deliveryQuery;
 }
Exemplo n.º 2
0
 public DeliveriesController(
     IMediator mediator,
     IDeliveryQueries deliveryQueries,
     ILogger <DeliveriesController> logger)
 {
     _mediator        = mediator ?? throw new ArgumentNullException(nameof(mediator));
     _deliveryQueries = deliveryQueries;
     _logger          = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Exemplo n.º 3
0
 public QueueDeliveryService(
     IDeliveryQueries deliveryQueries,
     IOptions <QueueDeliveryTaskSettings> settings,
     IEventBus eventBus,
     ILogger <QueueDeliveryService> logger)
 {
     _deliveryQueries = deliveryQueries ?? throw new ArgumentNullException(nameof(deliveryQueries));
     _settings        = settings?.Value ?? throw new ArgumentNullException(nameof(settings));
     _eventBus        = eventBus ?? throw new ArgumentNullException(nameof(eventBus));
     _logger          = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Exemplo n.º 4
0
 public DeliveryService(
     IServiceProvider services,
     IDeliveryQueries deliveryQueries,
     IOptions <DeliveryTaskSettings> settings,
     IDeliveryItemsQueue queue,
     IWebPushService pushService,
     ILogger <DeliveryService> logger)
 {
     _services        = services ?? throw new ArgumentNullException(nameof(services));
     _deliveryQueries = deliveryQueries ?? throw new ArgumentNullException(nameof(deliveryQueries));
     _settings        = settings?.Value ?? throw new ArgumentNullException(nameof(settings));
     _queue           = queue ?? throw new ArgumentNullException(nameof(queue));
     _pushService     = pushService ?? throw new ArgumentException(nameof(pushService));
     _logger          = logger ?? throw new ArgumentNullException(nameof(logger));
 }