public EventStore(IOptions <DomainDbConfiguration> settings,
                   IAggregateDocumentFactory aggregateDocumentFactory,
                   IEventDocumentFactory eventDocumentFactory)
 {
     _dbContext = new DomainDbContext(settings);
     _aggregateDocumentFactory = aggregateDocumentFactory;
     _eventDocumentFactory     = eventDocumentFactory;
 }
Exemple #2
0
 public CommandStore(IOptions <DomainDbConfiguration> settings,
                     IAggregateDocumentFactory aggregateDocumentFactory,
                     ICommandDocumentFactory commandDocumentFactory)
 {
     _dbContext = new DomainDbContext(settings);
     _aggregateDocumentFactory = aggregateDocumentFactory;
     _commandDocumentFactory   = commandDocumentFactory;
 }