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