Example #1
0
 public CatchUpSubscriptionPublisher(ILogger <CatchUpSubscriptionPublisher> logger, IEventStoreConnectionFactory connectionFactory, IEventStreamFactory eventStreamFactory)
 {
     _logger      = logger;
     _eventMapper = new EventMapper();
     _eventStream = eventStreamFactory.GetEventStream <EventStreamHandler>();
     _connection  = connectionFactory.Invoke();
     _connection.ConnectAsync().Wait();
 }
Example #2
0
 public InMemoryEventStoreCatchUpSubscriber(ILogger <InMemoryEventStoreCatchUpSubscriber> logger, IEventStreamFactory eventStreamFactory, IInMemoryEventStore eventStore)
 {
     _logger      = logger;
     _eventStore  = eventStore;
     _eventStream = eventStreamFactory.GetEventStream <EventStreamHandler>();
 }
Example #3
0
 public EventStreamHandler(ILogger <EventStreamHandler> logger, IEventStreamFactory eventStreamFactory, IEventHandler <EventStreamHandler> eventHandler)
 {
     _logger       = logger;
     _eventStream  = eventStreamFactory.GetEventStream <EventStreamHandler>();
     _eventHandler = eventHandler;
 }