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;
 }
Ejemplo n.º 3
0
 public CommandStore(IDocumentRepository <AggregateDocument> aggregateRepository,
                     IDocumentRepository <CommandDocument> commandRepository,
                     IAggregateDocumentFactory aggregateDocumentFactory,
                     ICommandDocumentFactory commandDocumentFactory)
 {
     _aggregateRepository      = aggregateRepository;
     _commandRepository        = commandRepository;
     _aggregateDocumentFactory = aggregateDocumentFactory;
     _commandDocumentFactory   = commandDocumentFactory;
 }
Ejemplo n.º 4
0
 public EventStore(IDocumentDbRepository <AggregateDocument> aggregateRepository,
                   IDocumentDbRepository <EventDocument> eventRepository,
                   IAggregateDocumentFactory aggregateDocumentFactory,
                   IEventDocumentFactory eventDocumentFactory)
 {
     _aggregateRepository      = aggregateRepository;
     _eventRepository          = eventRepository;
     _aggregateDocumentFactory = aggregateDocumentFactory;
     _eventDocumentFactory     = eventDocumentFactory;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 9
0
 public AggregateStore(IDocumentRepository <AggregateDocument> aggregateRepository, IAggregateDocumentFactory aggregateDocumentFactory)
 {
     _aggregateRepository      = aggregateRepository;
     _aggregateDocumentFactory = aggregateDocumentFactory;
 }