protected JobStatusService(IJobStorageService jobStorageService, IPaymentLogger logger, ITelemetry telemetry, IJobStatusEventPublisher eventPublisher, IJobServiceConfiguration config) { Config = config ?? throw new ArgumentNullException(nameof(config)); this.JobStorageService = jobStorageService ?? throw new ArgumentNullException(nameof(jobStorageService)); this.Logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.Telemetry = telemetry ?? throw new ArgumentNullException(nameof(telemetry)); this.EventPublisher = eventPublisher ?? throw new ArgumentNullException(nameof(eventPublisher)); }
public RecordPeriodEndSubmissionWindowValidationJobHandler(IPaymentLogger logger, IPeriodEndJobService periodEndJobService, ISubmissionWindowValidationClient submissionWindowValidationClient, IJobStorageService jobStorageService, ITelemetry telemetry) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.periodEndJobService = periodEndJobService ?? throw new ArgumentNullException(nameof(periodEndJobService)); this.submissionWindowValidationClient = submissionWindowValidationClient ?? throw new ArgumentNullException(nameof(submissionWindowValidationClient)); this.jobStorageService = jobStorageService ?? throw new ArgumentNullException(nameof(jobStorageService)); this.telemetry = telemetry ?? throw new ArgumentNullException(nameof(telemetry)); }
public RecordPeriodEndRequestReportsJobHandler(IPaymentLogger logger, IPeriodEndJobService periodEndJobService, IJobStorageService jobStorageService, IPeriodEndRequestReportsClient periodEndRequestReportsClient, ITelemetry telemetry) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.periodEndJobService = periodEndJobService ?? throw new ArgumentNullException(nameof(periodEndJobService)); this.jobStorageService = jobStorageService ?? throw new ArgumentNullException(nameof(jobStorageService)); this.periodEndRequestReportsClient = periodEndRequestReportsClient ?? throw new ArgumentNullException(nameof(periodEndRequestReportsClient)); this.telemetry = telemetry ?? throw new ArgumentNullException(nameof(telemetry)); }
/// <summary> /// Конструктор. /// </summary> /// <param name="logger">Логгер.</param> /// <param name="authorizedUserProvider"><see cref="IAuthorizedUserProvider"/>.</param> /// <param name="jobStorageService">Сервис для работы <see cref="JobStorage"/>.</param> public NotificationHub( ILogger <NotificationHub> logger, IAuthorizedUserProvider authorizedUserProvider, IJobStorageService jobStorageService) { this.logger = logger; this.authorizedUserProvider = authorizedUserProvider; this.jobStorageService = jobStorageService; }
public PeriodEndStartJobStatusService( IJobStorageService jobStorageService, IPaymentLogger logger, ITelemetry telemetry, IJobStatusEventPublisher eventPublisher, IJobServiceConfiguration config, IJobsDataContext context) : base(jobStorageService, logger, telemetry, eventPublisher, config) { this.context = context ?? throw new ArgumentNullException(nameof(context)); }
public EarningsJobService(IPaymentLogger logger, IJobStorageService jobStorageService, ITelemetry telemetry) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.jobStorageService = jobStorageService ?? throw new ArgumentNullException(nameof(jobStorageService)); this.telemetry = telemetry ?? throw new ArgumentNullException(nameof(telemetry)); }
public override async Task <List <long> > GetCurrentJobs(IJobStorageService jobStorage) { return(await jobStorage.GetCurrentPeriodEndStartJobs(cancellationToken).ConfigureAwait(false)); }
public EarningsJobStatusService(IJobStorageService jobStorageService, IPaymentLogger logger, ITelemetry telemetry, IJobStatusEventPublisher eventPublisher, IJobServiceConfiguration config) : base(jobStorageService, logger, telemetry, eventPublisher, config) { }
public abstract Task <List <long> > GetCurrentJobs(IJobStorageService jobStorage);
public ComputationJobStatusService(IJobStorageService jobStorageService) { _jobStorage = jobStorageService; }
public PeriodEndJobService(IPaymentLogger logger, IJobStorageService jobStorageService, ITelemetry telemetry) : base(logger, jobStorageService, telemetry) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public EarningsJobService(IPaymentLogger logger, IJobStorageService jobStorageService, ITelemetry telemetry) : base(logger, jobStorageService, telemetry) { }