Esempio n. 1
0
 public EventStore(IOptions <DomainDbConfiguration> settings,
                   IEventDocumentFactory eventDocumentFactory,
                   IVersionService versionService)
 {
     _dbContext            = new DomainDbContext(settings);
     _eventDocumentFactory = eventDocumentFactory;
     _versionService       = versionService;
 }
Esempio n. 2
0
 public EventStore(IDocumentRepository <EventDocument> eventRepository,
                   IEventDocumentFactory eventDocumentFactory,
                   IVersionService versionService)
 {
     _eventRepository      = eventRepository;
     _eventDocumentFactory = eventDocumentFactory;
     _versionService       = versionService;
 }
Esempio n. 3
0
 public EventStore(IOptions <DomainDbConfiguration> settings,
                   IAggregateDocumentFactory aggregateDocumentFactory,
                   IEventDocumentFactory eventDocumentFactory)
 {
     _dbContext = new DomainDbContext(settings);
     _aggregateDocumentFactory = aggregateDocumentFactory;
     _eventDocumentFactory     = eventDocumentFactory;
 }
Esempio n. 4
0
 public EventStore(IDocumentDbRepository <AggregateDocument> aggregateRepository,
                   IDocumentDbRepository <EventDocument> eventRepository,
                   IAggregateDocumentFactory aggregateDocumentFactory,
                   IEventDocumentFactory eventDocumentFactory)
 {
     _aggregateRepository      = aggregateRepository;
     _eventRepository          = eventRepository;
     _aggregateDocumentFactory = aggregateDocumentFactory;
     _eventDocumentFactory     = eventDocumentFactory;
 }
Esempio n. 5
0
 public EventStore(IDocumentRepository <AggregateDocument> aggregateRepository,
                   IDocumentRepository <EventDocument> eventRepository,
                   IAggregateDocumentFactory aggregateDocumentFactory,
                   IEventDocumentFactory eventDocumentFactory,
                   IVersionService versionService)
 {
     _aggregateRepository      = aggregateRepository;
     _eventRepository          = eventRepository;
     _aggregateDocumentFactory = aggregateDocumentFactory;
     _eventDocumentFactory     = eventDocumentFactory;
     _versionService           = versionService;
 }
Esempio n. 6
0
 public MongoStoreProvider(IOptions <MongoOptions> settings,
                           IAggregateDocumentFactory aggregateDocumentFactory,
                           ICommandDocumentFactory commandDocumentFactory,
                           IEventDocumentFactory eventDocumentFactory,
                           IVersionService versionService)
 {
     _dbContext = new MongoDbContext(settings);
     _aggregateDocumentFactory = aggregateDocumentFactory;
     _commandDocumentFactory   = commandDocumentFactory;
     _commandDocumentFactory   = commandDocumentFactory;
     _eventDocumentFactory     = eventDocumentFactory;
     _versionService           = versionService;
 }
Esempio n. 7
0
 public DomainStore(IConfiguration configuration, IOptions <DomainDbOptions> settings,
                    IAggregateDocumentFactory aggregateDocumentFactory,
                    ICommandDocumentFactory commandDocumentFactory,
                    IEventDocumentFactory eventDocumentFactory,
                    IVersionService versionService)
 {
     _dbContext = new DomainDbContext(configuration, settings);
     _aggregateDocumentFactory = aggregateDocumentFactory;
     _commandDocumentFactory   = commandDocumentFactory;
     _commandDocumentFactory   = commandDocumentFactory;
     _eventDocumentFactory     = eventDocumentFactory;
     _versionService           = versionService;
 }
Esempio n. 8
0
 public StoreProvider(IDocumentRepository <AggregateDocument> aggregateRepository,
                      IDocumentRepository <CommandDocument> commandRepository,
                      IDocumentRepository <EventDocument> eventRepository,
                      IAggregateDocumentFactory aggregateDocumentFactory,
                      ICommandDocumentFactory commandDocumentFactory,
                      IEventDocumentFactory eventDocumentFactory,
                      IVersionService versionService)
 {
     _aggregateRepository      = aggregateRepository;
     _commandRepository        = commandRepository;
     _eventRepository          = eventRepository;
     _aggregateDocumentFactory = aggregateDocumentFactory;
     _commandDocumentFactory   = commandDocumentFactory;
     _commandDocumentFactory   = commandDocumentFactory;
     _eventDocumentFactory     = eventDocumentFactory;
     _versionService           = versionService;
 }