public EventSubscription(IEnumerable <IEventObserver> eventObservers, ILogger <EventSubscription> logger,
                          IStreamStoreFactory streamStoreFactory, SetGlobalCheckpoint setGlobalCheckpoint,
                          GetGlobalCheckpoint getGlobalCheckpoint)
 {
     _eventObservers      = eventObservers.ToArray();
     _logger              = logger;
     _streamStoreFactory  = streamStoreFactory;
     _setGlobalCheckpoint = setGlobalCheckpoint;
     _getGlobalCheckpoint = getGlobalCheckpoint;
 }
Beispiel #2
0
 public ReplayManager(IStreamStoreFactory streamStoreFactory, EventSourcingOptions options, ILogger <ReplayManager> logger)
 {
     _streamStoreFactory = streamStoreFactory ?? throw new ArgumentNullException(nameof(streamStoreFactory));
     _logger             = logger ?? throw new ArgumentNullException(nameof(logger));
     _options            = options ?? throw new ArgumentNullException(nameof(options));
 }
 public SqlEventStore(IStreamStoreFactory streamStoreFactory, ServiceFactory serviceFactory)
 {
     _streamStoreFactory = streamStoreFactory ?? throw new ArgumentNullException(nameof(streamStoreFactory));
     _serviceFactory     = serviceFactory ?? throw new ArgumentNullException(nameof(serviceFactory));
 }