Exemple #1
0
 public PurgeDuplicatePendingReadModelUpdates(
     IPendingReadModelUpdateRepository pendingReadModelUpdateRepository,
     ITransactionManager transactionManager,
     IGenericRepository <PendingReadModelUpdate> primitiveRepository)
 {
     _pendingReadModelUpdateRepository = pendingReadModelUpdateRepository;
     _transactionManager  = transactionManager;
     _primitiveRepository = primitiveRepository;
 }
Exemple #2
0
 public BuildItSystemUsageOverviewReadModelOnChangesHandler(
     IPendingReadModelUpdateRepository pendingReadModelUpdateRepository,
     IItSystemUsageOverviewReadModelRepository readModelRepository,
     IReadModelUpdate <ItSystemUsage, ItSystemUsageOverviewReadModel> readModelUpdate)
 {
     _pendingReadModelUpdateRepository = pendingReadModelUpdateRepository;
     _readModelRepository = readModelRepository;
     _readModelUpdate     = readModelUpdate;
 }
 public BuildDataProcessingRegistrationReadModelOnChangesHandler(
     IDataProcessingRegistrationReadModelRepository readModelRepository,
     IReadModelUpdate <DataProcessingRegistration, DataProcessingRegistrationReadModel> mapper,
     IPendingReadModelUpdateRepository pendingReadModelUpdateRepository)
 {
     _readModelRepository = readModelRepository;
     _mapper = mapper;
     _pendingReadModelUpdateRepository = pendingReadModelUpdateRepository;
 }
Exemple #4
0
 public RebuildReadModelsJobFactory(
     IGenericRepository <ItSystemUsage> systemUsageRepository,
     IGenericRepository <DataProcessingRegistration> dprRepository,
     IPendingReadModelUpdateRepository pendingReadModelUpdateRepository)
 {
     _systemUsageRepository            = systemUsageRepository;
     _dprRepository                    = dprRepository;
     _pendingReadModelUpdateRepository = pendingReadModelUpdateRepository;
 }
 public RebuildReadModelsJob(
     string id,
     Func <IEnumerable <int> > getIds,
     PendingReadModelUpdateSourceCategory sourceCategory,
     IPendingReadModelUpdateRepository pendingReadModelUpdateRepository)
 {
     _getIds         = getIds;
     _sourceCategory = sourceCategory;
     _pendingReadModelUpdateRepository = pendingReadModelUpdateRepository;
     Id = id;
 }
 public ScheduleDataProcessingRegistrationReadModelUpdates(
     IPendingReadModelUpdateRepository updateRepository,
     IDataProcessingRegistrationReadModelRepository readModelRepository,
     IDataProcessingRegistrationRepository dataProcessingRegistrationRepository,
     ITransactionManager transactionManager)
 {
     _updateRepository    = updateRepository;
     _readModelRepository = readModelRepository;
     _dataProcessingRegistrationRepository = dataProcessingRegistrationRepository;
     _transactionManager = transactionManager;
 }
Exemple #7
0
 public ScheduleItSystemUsageOverviewReadModelUpdates(
     IPendingReadModelUpdateRepository updateRepository,
     IItSystemUsageOverviewReadModelRepository readModelRepository,
     IItSystemUsageRepository itSystemUsageRepository,
     IItSystemRepository itSystemRepository,
     ITransactionManager transactionManager)
 {
     _updateRepository        = updateRepository;
     _readModelRepository     = readModelRepository;
     _itSystemUsageRepository = itSystemUsageRepository;
     _itSystemRepository      = itSystemRepository;
     _transactionManager      = transactionManager;
 }
 public RebuildDataProcessingRegistrationReadModelsBatchJob(
     ILogger logger,
     IPendingReadModelUpdateRepository pendingReadModelUpdateRepository,
     IReadModelUpdate <DataProcessingRegistration, DataProcessingRegistrationReadModel> updater,
     IDataProcessingRegistrationReadModelRepository readModelRepository,
     IDataProcessingRegistrationRepository sourceRepository,
     ITransactionManager transactionManager)
 {
     _logger = logger;
     _pendingReadModelUpdateRepository = pendingReadModelUpdateRepository;
     _updater             = updater;
     _readModelRepository = readModelRepository;
     _sourceRepository    = sourceRepository;
     _transactionManager  = transactionManager;
 }
 public RebuildItSystemUsageOverviewReadModelsBatchJob(
     ILogger logger,
     IPendingReadModelUpdateRepository pendingReadModelUpdateRepository,
     IReadModelUpdate <ItSystemUsage, ItSystemUsageOverviewReadModel> updater,
     IItSystemUsageOverviewReadModelRepository readModelRepository,
     IItSystemUsageRepository sourceRepository,
     ITransactionManager transactionManager,
     IGenericRepository <ItSystemUsageOverviewReadModel> lowLevelReadModelRepository, //NOTE: Using the primitive repositories on purpose since we want to reduce the amount of calls to SaveChanges as much as possible
     IGenericRepository <PendingReadModelUpdate> lowLevelPendingReadModelRepository,
     IDatabaseControl databaseControl)
 {
     _logger = logger;
     _pendingReadModelUpdateRepository = pendingReadModelUpdateRepository;
     _updater                            = updater;
     _readModelRepository                = readModelRepository;
     _sourceRepository                   = sourceRepository;
     _transactionManager                 = transactionManager;
     _lowLevelReadModelRepository        = lowLevelReadModelRepository;
     _lowLevelPendingReadModelRepository = lowLevelPendingReadModelRepository;
     _databaseControl                    = databaseControl;
 }