public JobService(StatefulServiceContext context, IPaymentLogger logger, IEarningsJobStatusManager earningsJobStatusManager, IPeriodEndJobStatusManager periodEndJobStatusManager, ILifetimeScope lifetimeScope, IPeriodEndStartJobStatusManager periodEndStartJobStatusManager ) : base(context) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.earningsJobStatusManager = earningsJobStatusManager ?? throw new ArgumentNullException(nameof(earningsJobStatusManager)); this.periodEndJobStatusManager = periodEndJobStatusManager ?? throw new ArgumentNullException(nameof(periodEndJobStatusManager)); this.lifetimeScope = lifetimeScope; this.periodEndStartJobStatusManager = periodEndStartJobStatusManager ?? throw new ArgumentNullException(nameof(periodEndStartJobStatusManager)); }
public RecordPeriodEndStopJobHandler(IPaymentLogger logger, IPeriodEndJobService periodEndJobService, IPeriodEndJobStatusManager jobStatusManager) { this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.periodEndJobService = periodEndJobService ?? throw new ArgumentNullException(nameof(periodEndJobService)); this.jobStatusManager = jobStatusManager ?? throw new ArgumentNullException(nameof(jobStatusManager)); }