public CbsController(IMediator mediator, IExtractStatusService extractStatusService, IHubContext <CbsActivity> hubContext, IMasterPatientIndexRepository masterPatientIndexRepository, ICbsSendService cbsSendService, IHubContext <CbsSendActivity> hubSendContext, IMpiSearchService mpiSearchService) { _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); _extractStatusService = extractStatusService; _masterPatientIndexRepository = masterPatientIndexRepository; _cbsSendService = cbsSendService; _mpiSearchService = mpiSearchService; Startup.CbsSendHubContext = _hubSendContext = hubSendContext; Startup.CbsHubContext = _hubContext = hubContext; }
public CbsController(IMediator mediator, IExtractStatusService extractStatusService, IHubContext <CbsActivity> hubContext, IMasterPatientIndexRepository masterPatientIndexRepository, ICbsSendService cbsSendService, IHubContext <CbsSendActivity> hubSendContext, IMpiSearchService mpiSearchService) { _mediator = mediator ?? throw new ArgumentNullException(nameof(mediator)); _extractStatusService = extractStatusService; _masterPatientIndexRepository = masterPatientIndexRepository; _cbsSendService = cbsSendService; _mpiSearchService = mpiSearchService; Startup.CbsSendHubContext = _hubSendContext = hubSendContext; Startup.CbsHubContext = _hubContext = hubContext; var ver = GetType().Assembly.GetName().Version; _version = $"{ver.Major}.{ver.Minor}.{ver.Build}"; }