public DwhExtractsController(IMediator mediator, IExtractStatusService extractStatusService, IHubContext <ExtractActivity> hubContext, IDwhSendService dwhSendService, IHubContext <DwhSendActivity> hubSendContext) { _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); _extractStatusService = extractStatusService; _dwhSendService = dwhSendService; Startup.DwhSendHubContext = _hubSendContext = hubSendContext; Startup.HubContext = _hubContext = hubContext; }
public void SetUp() { _registry = new CentralRegistry(url, "NDWH") { AuthToken = _authToken, SubscriberId = _subId }; _dwhSendService = _serviceProvider.GetService <IDwhSendService>(); }
public DwhExtractsController(IMediator mediator, IExtractStatusService extractStatusService, IHubContext <ExtractActivity> hubContext, IDwhSendService dwhSendService, ICbsSendService cbsSendService, ICTSendService ctSendService, IExtractRepository extractRepository) { _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); _extractStatusService = extractStatusService; _dwhSendService = dwhSendService; _cbsSendService = cbsSendService; _ctSendService = ctSendService; _extractRepository = extractRepository; Startup.HubContext = _hubContext = hubContext; }