Esempio n. 1
0
 public ProjectionPlayer(IEventStoreFactory eventStoreFactory, IProjectionStore projectionStore, IProjectionRepository projectionRepository, ISnapshotStore snapshotStore, EventTypeIndexForProjections index, ITenantResolver tenantResolver)
 {
     this.eventStoreFactory    = eventStoreFactory;
     this.projectionStore      = projectionStore;
     this.projectionRepository = projectionRepository;
     this.snapshotStore        = snapshotStore;
     this.index          = index;
     this.tenantResolver = tenantResolver;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EventStoreRepository" /> class.
 /// </summary>
 /// <param name="eventStoreFactory">The event store factory.</param>
 /// <param name="factory">The factory.</param>
 /// <param name="conflictDetector">The conflict detector.</param>
 /// <param name="unitOfWorkProvider">The unit of work provider.</param>
 public EventStoreRepository(
     IEventStoreFactory eventStoreFactory,
     IAggregateFactory factory,
     IDetectConflicts conflictDetector,
     IUnitOfWorkProvider unitOfWorkProvider)
 {
     _eventStoreFactory  = eventStoreFactory;
     _factory            = factory;
     _conflictDetector   = conflictDetector;
     _unitOfWorkProvider = unitOfWorkProvider;
 }
Esempio n. 3
0
        public MultiTenantEventStore(IEventStoreFactory factory, ITenantResolver tenantResolver)
        {
            if (ReferenceEquals(null, factory) == true)
            {
                throw new ArgumentNullException(nameof(factory));
            }
            if (ReferenceEquals(null, tenantResolver) == true)
            {
                throw new ArgumentNullException(nameof(tenantResolver));
            }

            this.factory        = factory;
            this.tenantResolver = tenantResolver;
        }
 /// <summary>Initializes a new instance of the <see cref="SystemAccountRepository" /> class.</summary>
 /// <param name="unitOfWorkProvider">The unit of work provider.</param>
 /// <param name="eventStoreFactory">The event store factory.</param>
 public SystemAccountRepository(IUnitOfWorkProvider unitOfWorkProvider, IEventStoreFactory eventStoreFactory)
     : base(unitOfWorkProvider)
 {
     _eventStoreFactory = eventStoreFactory;
 }
Esempio n. 5
0
 public EventStoreRepository(IEventStoreFactory eventStoreFactory)
 {
     _eventStore = eventStoreFactory.GetEventStore();
 }
Esempio n. 6
0
 public EventStoreIndexPlayer(IEventStoreFactory eventStoreFactory, IProjectionStore projectionStore, IProjectionRepository projectionRepository)
 {
     this.eventStoreFactory    = eventStoreFactory;
     this.projectionStore      = projectionStore;
     this.projectionRepository = projectionRepository;
 }
 public SystemAccountRepository(IEventStoreRepository eventStoreRepository, IEventStoreFactory eventStoreFactory)
     : base(eventStoreRepository)
 {
     _eventStoreFactory = eventStoreFactory;
 }