Beispiel #1
0
 public EventStore(IOptions <DomainDbConfiguration> settings,
                   IEventDocumentFactory eventDocumentFactory,
                   IVersionService versionService)
 {
     _dbContext            = new DomainDbContext(settings);
     _eventDocumentFactory = eventDocumentFactory;
     _versionService       = versionService;
 }
Beispiel #2
0
 public CommandStore(IOptions <DomainDbConfiguration> settings,
                     IAggregateDocumentFactory aggregateDocumentFactory,
                     ICommandDocumentFactory commandDocumentFactory)
 {
     _dbContext = new DomainDbContext(settings);
     _aggregateDocumentFactory = aggregateDocumentFactory;
     _commandDocumentFactory   = commandDocumentFactory;
 }
Beispiel #3
0
 public AggregateStore(IOptions <DomainDbConfiguration> settings, IAggregateDocumentFactory aggregateDocumentFactory)
 {
     _dbContext = new DomainDbContext(settings);
     _aggregateDocumentFactory = aggregateDocumentFactory;
 }