public DataLockStatusChangedEventBatchProcessor(
     IBatchedDataCache <PriceEpisodeStatusChange> cache,
     IPaymentLogger logger,
     IBulkWriter <LegacyDataLockEvent> dataLockEventWriter,
     IBulkWriter <LegacyDataLockEventCommitmentVersion> dataLockEventCommitmentVersionWriter,
     IBulkWriter <LegacyDataLockEventError> dataLockEventErrorWriter,
     IBulkWriter <LegacyDataLockEventPeriod> dataLockEventPeriodWriter)
 {
     this.cache  = cache;
     this.logger = logger;
     this.dataLockEventWriter = dataLockEventWriter;
     this.dataLockEventCommitmentVersionWriter = dataLockEventCommitmentVersionWriter;
     this.dataLockEventErrorWriter             = dataLockEventErrorWriter;
     this.dataLockEventPeriodWriter            = dataLockEventPeriodWriter;
 }
コード例 #2
0
 public DataLockStatusChangedEventBatchProcessor(
     IBatchedDataCache <DataLockStatusChanged> cache,
     IPaymentLogger logger,
     IBulkWriter <LegacyDataLockEvent> dataLockEventWriter,
     IBulkWriter <LegacyDataLockEventCommitmentVersion> dataLockEventCommitmentVersionWriter,
     IBulkWriter <LegacyDataLockEventError> dataLockEventErrorWriter,
     IBulkWriter <LegacyDataLockEventPeriod> dataLockEventPeriodWriter,
     IApprenticeshipRepository apprenticeshipRepository)
 {
     this.cache  = cache;
     this.logger = logger;
     this.dataLockEventWriter = dataLockEventWriter;
     this.dataLockEventCommitmentVersionWriter = dataLockEventCommitmentVersionWriter;
     this.dataLockEventErrorWriter             = dataLockEventErrorWriter;
     this.dataLockEventPeriodWriter            = dataLockEventPeriodWriter;
     this.apprenticeshipRepository             = apprenticeshipRepository;
 }
コード例 #3
0
 public BatchProcessor(IBatchedDataCache <T> cache, IPaymentLogger logger, IBulkWriter <T> bulkWriter)
 {
     this.cache      = cache;
     this.logger     = logger;
     this.bulkWriter = bulkWriter;
 }
 public CachingEventProcessor(IMapper mapper, IBatchedDataCache <T> cache)
 {
     this.cache  = cache ?? throw new ArgumentNullException(nameof(cache));
     this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }