示例#1
0
 public EventStore(IOptions <DomainDbConfiguration> settings,
                   IEventDocumentFactory eventDocumentFactory,
                   IVersionService versionService)
 {
     _dbContext            = new DomainDbContext(settings);
     _eventDocumentFactory = eventDocumentFactory;
     _versionService       = versionService;
 }
示例#2
0
 public EventStore(IDocumentRepository <EventDocument> eventRepository,
                   IEventDocumentFactory eventDocumentFactory,
                   IVersionService versionService)
 {
     _eventRepository      = eventRepository;
     _eventDocumentFactory = eventDocumentFactory;
     _versionService       = versionService;
 }
示例#3
0
 public EventStore(IOptions <DomainDbConfiguration> settings,
                   IAggregateDocumentFactory aggregateDocumentFactory,
                   IEventDocumentFactory eventDocumentFactory)
 {
     _dbContext = new DomainDbContext(settings);
     _aggregateDocumentFactory = aggregateDocumentFactory;
     _eventDocumentFactory     = eventDocumentFactory;
 }
示例#4
0
 public EventStore(IDocumentDbRepository <AggregateDocument> aggregateRepository,
                   IDocumentDbRepository <EventDocument> eventRepository,
                   IAggregateDocumentFactory aggregateDocumentFactory,
                   IEventDocumentFactory eventDocumentFactory)
 {
     _aggregateRepository      = aggregateRepository;
     _eventRepository          = eventRepository;
     _aggregateDocumentFactory = aggregateDocumentFactory;
     _eventDocumentFactory     = eventDocumentFactory;
 }
示例#5
0
 public EventStore(IDocumentRepository <AggregateDocument> aggregateRepository,
                   IDocumentRepository <EventDocument> eventRepository,
                   IAggregateDocumentFactory aggregateDocumentFactory,
                   IEventDocumentFactory eventDocumentFactory,
                   IVersionService versionService)
 {
     _aggregateRepository      = aggregateRepository;
     _eventRepository          = eventRepository;
     _aggregateDocumentFactory = aggregateDocumentFactory;
     _eventDocumentFactory     = eventDocumentFactory;
     _versionService           = versionService;
 }
示例#6
0
 public MongoStoreProvider(IOptions <MongoOptions> settings,
                           IAggregateDocumentFactory aggregateDocumentFactory,
                           ICommandDocumentFactory commandDocumentFactory,
                           IEventDocumentFactory eventDocumentFactory,
                           IVersionService versionService)
 {
     _dbContext = new MongoDbContext(settings);
     _aggregateDocumentFactory = aggregateDocumentFactory;
     _commandDocumentFactory   = commandDocumentFactory;
     _commandDocumentFactory   = commandDocumentFactory;
     _eventDocumentFactory     = eventDocumentFactory;
     _versionService           = versionService;
 }
示例#7
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;
 }
示例#8
0
 public StoreProvider(IDocumentRepository <AggregateDocument> aggregateRepository,
                      IDocumentRepository <CommandDocument> commandRepository,
                      IDocumentRepository <EventDocument> eventRepository,
                      IAggregateDocumentFactory aggregateDocumentFactory,
                      ICommandDocumentFactory commandDocumentFactory,
                      IEventDocumentFactory eventDocumentFactory,
                      IVersionService versionService)
 {
     _aggregateRepository      = aggregateRepository;
     _commandRepository        = commandRepository;
     _eventRepository          = eventRepository;
     _aggregateDocumentFactory = aggregateDocumentFactory;
     _commandDocumentFactory   = commandDocumentFactory;
     _commandDocumentFactory   = commandDocumentFactory;
     _eventDocumentFactory     = eventDocumentFactory;
     _versionService           = versionService;
 }