Пример #1
0
        public TcpEventReader(IEventStoreConnection connection, int pageSize = 4096)
        {
            _connection = connection;
            _pageSize   = pageSize;
            var metaCache = new StreamMetaCache();

            _filter             = new ScavengedEventsFilter(connection, metaCache);
            _realtime           = new Realtime(connection, metaCache);
            _connection.Closed += HandleConnectionError;
        }
Пример #2
0
 public ScavengedEventsFilter(IEventStoreConnection connection, StreamMetaCache cache)
 {
     _connection = connection;
     _cache      = cache;
 }
Пример #3
0
 public Realtime(IEventStoreConnection connection, StreamMetaCache metaCache)
 {
     _connection = connection;
     _metaCache  = metaCache;
 }