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