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