protected BaseTimedHostedService(
     string logPrefix,
     ILogger logger,
     ISerialisationHelperService serialisationHelperService)
 {
     _logPrefix = logPrefix;
     _logger    = logger;
     _serialisationHelperService = serialisationHelperService;
 }
Example #2
0
 public ReferenceDataTimedHostedService(
     ILogger logger,
     IHubEventBase eventBase,
     ISerialisationHelperService serialisationHelperService,
     IEnumerable <IReferenceDataHub> hubs)
     : base("Reference Data", logger, serialisationHelperService)
 {
     _logger = logger;
     _hubs   = hubs;
     eventBase.HubCallback += RegisterClient;
 }
 public DevolvedPostcodesPublicationHub(
     IHubEventBase eventBase,
     ISerialisationHelperService serialisationHelperService,
     IHubContext <DevolvedPostcodesPublicationHub> hubContext,
     IReferenceDataProcessService referenceDataService,
     ILogger logger)
     : base(eventBase, logger, ReferenceDataTypes.FisReferenceData2021)
 {
     _serialisationHelperService = serialisationHelperService;
     _hubContext           = hubContext;
     _referenceDataService = referenceDataService;
 }
Example #4
0
 public OnsPostcodesHub(
     IHubEventBase eventBase,
     ISerialisationHelperService serialisationHelperService,
     IHubContext <OnsPostcodesHub> hubContext,
     IReferenceDataService referenceDataService,
     ILogger logger)
     : base(eventBase, logger, ReferenceDataTypes.OnsPostcodes)
 {
     _serialisationHelperService = serialisationHelperService;
     _hubContext           = hubContext;
     _referenceDataService = referenceDataService;
 }
 public CampusIdentifiersHub(
     IHubEventBase eventBase,
     ISerialisationHelperService serialisationHelperService,
     IHubContext <CampusIdentifiersHub> hubContext,
     IReferenceDataService referenceDataService,
     ILogger logger)
     : base(eventBase, logger, ReferenceDataTypes.CampusIdentifier)
 {
     _serialisationHelperService = serialisationHelperService;
     _hubContext           = hubContext;
     _referenceDataService = referenceDataService;
 }
 public ProviderPostcodeSpecialistResourcesHub(
     IHubEventBase eventBase,
     ISerialisationHelperService serialisationHelperService,
     IHubContext <ProviderPostcodeSpecialistResourcesHub> hubContext,
     IReferenceDataService referenceDataService,
     ILogger logger)
     : base(eventBase, logger, ReferenceDataTypes.ProviderPostcodeSpecialistResourcesHub)
 {
     _serialisationHelperService = serialisationHelperService;
     _hubContext           = hubContext;
     _referenceDataService = referenceDataService;
 }
Example #7
0
 public ValidationErrorMessages2021Hub(
     IHubEventBase eventBase,
     ISerialisationHelperService serialisationHelperService,
     IHubContext <ValidationErrorMessages2021Hub> hubContext,
     IReferenceDataService referenceDataService,
     ILogger logger)
     : base(eventBase, logger, ReferenceDataTypes.ValidationMessages2021)
 {
     _serialisationHelperService = serialisationHelperService;
     _hubContext           = hubContext;
     _referenceDataService = referenceDataService;
 }
Example #8
0
 public ShortTermFundingInitiativesHub(
     IHubEventBase eventBase,
     ISerialisationHelperService serialisationHelperService,
     IHubContext <ShortTermFundingInitiativesHub> hubContext,
     IReferenceDataService referenceDataService,
     ILogger logger)
     : base(eventBase, logger, ReferenceDataTypes.ShortTermFundingInitiatives)
 {
     _serialisationHelperService = serialisationHelperService;
     _hubContext           = hubContext;
     _referenceDataService = referenceDataService;
 }
 public ConditionOfFundingRemovalHub(
     IHubEventBase eventBase,
     ISerialisationHelperService serialisationHelperService,
     IHubContext <ConditionOfFundingRemovalHub> hubContext,
     IReferenceDataService referenceDataService,
     ILogger logger)
     : base(eventBase, logger, ReferenceDataTypes.ConditionOfFundingRemoval)
 {
     _serialisationHelperService = serialisationHelperService;
     _hubContext           = hubContext;
     _referenceDataService = referenceDataService;
 }
Example #10
0
 public DevolvedContractsHub(
     IHubEventBase eventBase,
     ISerialisationHelperService serialisationHelperService,
     IHubContext <DevolvedContractsHub> hubContext,
     IReferenceDataService referenceDataService,
     ILogger logger)
     : base(eventBase, logger, ReferenceDataTypes.DevolvedContracts)
 {
     _serialisationHelperService = serialisationHelperService;
     _hubContext           = hubContext;
     _referenceDataService = referenceDataService;
 }
Example #11
0
 public JobSubmittedTimedHostedService(
     IJobSubmittedService jobSubmittedService,
     IJobSubmittedHubEventBase hubEventBase,
     JobSubmittedHub jobSubmittedHub,
     ISerialisationHelperService serialisationHelperService,
     ILogger logger)
     : base("Job Submitted", logger, serialisationHelperService)
 {
     hubEventBase.ClientHeartbeatCallback += RegisterClient;
     _jobSubmittedService = jobSubmittedService;
     _jobSubmittedHub     = jobSubmittedHub;
     _logger = logger;
 }
 public PeriodEndTimedHostedService(
     ILogger logger,
     IPeriodEndService periodEndService,
     IHubEventBase eventBase,
     ISerialisationHelperService serialisationHelperService,
     PeriodEndHub periodEndHub)
 : base("Period End", logger, serialisationHelperService)
 {
     _logger = logger;
     _periodEndService = periodEndService;
     _periodEndHub = periodEndHub;
     eventBase.HubCallback += RegisterClient;
 }
 public NCSPeriodEndPrepTimedHostedService(
     ILogger logger,
     INCSPeriodEndService periodEndService,
     IPeriodEndPrepHubEventBase eventBase,
     ISerialisationHelperService serialisationHelperService,
     NCSPeriodEndPrepHub periodEndPrepHub)
     : base("NCS Period End Prep", logger, serialisationHelperService)
 {
     _logger           = logger;
     _periodEndService = periodEndService;
     _periodEndPrepHub = periodEndPrepHub;
     eventBase.PeriodEndHubPrepCallback += RegisterClient;
 }
Example #14
0
 public JobProvidersReturnedCurrentPeriodTimedHostedService(
     IJobProvidersReturnedCurrentPeriodService providersReturnedCurrentPeriodService,
     IJobProvidersReturnedCurrentPeriodHubEventBase hubEventBase,
     ProvidersReturnedCurrentPeriodHub providersReturnedCurrentPeriodHub,
     ISerialisationHelperService serialisationHelperService,
     ILogger logger)
     : base("Providers Returned Current Period", logger, serialisationHelperService)
 {
     hubEventBase.ClientHeartbeatCallback  += RegisterClient;
     _providersReturnedCurrentPeriodHub     = providersReturnedCurrentPeriodHub;
     _providersReturnedCurrentPeriodService = providersReturnedCurrentPeriodService;
     _logger = logger;
 }
 public DashboardTimedHostedService(
     IDashBoardService dashBoardService,
     IDashBoardHubEventBase hubEventBase,
     DashBoardHub dashboardHub,
     ISerialisationHelperService serialisationHelperService,
     ILogger logger)
     : base("Dashboard", logger, serialisationHelperService)
 {
     hubEventBase.ClientHeartbeatCallback += RegisterClient;
     _dashBoardService = dashBoardService;
     _dashboardHub     = dashboardHub;
     _logger           = logger;
 }
Example #16
0
 public JobFailedCurrentPeriodTimedHostedService(
     IJobFailedCurrentPeriodService jobFailedCurrentPeriodService,
     IJobFailedCurrentPeriodHubEventBase hubEventBase,
     JobFailedCurrentPeriodHub jobFailedCurrentPeriodHub,
     ISerialisationHelperService serialisationHelperService,
     ILogger logger)
     : base("Job Concern", logger, serialisationHelperService)
 {
     hubEventBase.ClientHeartbeatCallback += RegisterClient;
     _jobFailedCurrentPeriodService        = jobFailedCurrentPeriodService;
     _jobFailedCurrentPeriodHub            = jobFailedCurrentPeriodHub;
     _logger = logger;
 }