示例#1
0
 public MappingRepository(
     IContext context,
     IOperationExecutive operationExecutive,
     IMappingDataRepository mappingDataRepository,
     ISafeRepository safeRepository,
     IHashingSerializer <TEntity> hashingSerializer,
     IEventDispatcher <TEntity> eventDispatcher,
     IInitializer initializer)
 {
     this.context               = context;
     this.operationExecutive    = operationExecutive;
     this.mappingDataRepository = mappingDataRepository;
     this.safeRepository        = safeRepository;
     this.hashingSerializer     = hashingSerializer;
     initializer.Register(
         this.mappingDataRepository.CreateInitializer(eventDispatcher),
         suppressEvents: true);
 }
示例#2
0
 public DatabaseLogger(
     IContext context,
     IOperationExecutive operationExecutive,
     IServiceProvider <TEntity> serviceProvider,
     IMappingDataRepository mappingDataRepository,
     IHashingSerializer <TEntity> hashingSerializer,
     IHashFunction hashFunction,
     ILoggingConfigurationProvider loggingConfigurationProvider,
     ISafeRepository safeRepository)
 {
     this.context                      = context;
     this.operationExecutive           = operationExecutive;
     this.serviceProvider              = serviceProvider;
     this.mappingDataRepository        = mappingDataRepository;
     this.hashingSerializer            = hashingSerializer;
     this.hashFunction                 = hashFunction;
     this.loggingConfigurationProvider = loggingConfigurationProvider;
     this.safeRepository               = safeRepository;
 }
示例#3
0
 public Processor(
     IContext context,
     IOperationExecutive operationExecutive,
     ISafeMetadataProvider <TEntity> safeMetadataProvider,
     IServiceProvider <TEntity> serviceProvider,
     IMappingRepository <TEntity> mappingRepository,
     IPreprocessor <TEntity> preprocessor,
     IDeduplicator <TEntity> deduplicator,
     IHashingSerializer <TEntity> hashingSerializer,
     IGateway <TEntity> gateway,
     IEventHub <TEntity> eventHub)
 {
     this.context              = context;
     this.operationExecutive   = operationExecutive;
     this.safeMetadataProvider = safeMetadataProvider;
     this.serviceProvider      = serviceProvider;
     this.mappingRepository    = mappingRepository;
     this.preprocessor         = preprocessor;
     this.deduplicator         = deduplicator;
     this.hashingSerializer    = hashingSerializer;
     this.gateway              = gateway;
     this.eventHub             = eventHub;
 }