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