public StreamSubscriber(ILogger <StreamSubscriber> logger,
                                IEventStoreDb eventStoreDb,
                                IStreamManager streamManager,
                                IStreamHandler streamHandler)
        {
            _logger        = logger;
            _streamManager = streamManager;
            _streamHandler = streamHandler;

            _eventStoreClient = eventStoreDb.GetClient();
        }
Пример #2
0
 public EventsRepository(IEventStoreDb eventStoreDb, IEventStoreDbSerializer eventStoreDbSerializer)
 {
     _eventStoreDbSerializer = eventStoreDbSerializer;
     _eventStoreClient       = eventStoreDb.GetClient();
 }