Пример #1
0
        protected override Task Open()
        {
            _subscription = _context.Connection.SubscribeToStreamFrom(
                TimelineStreams.Timeline,
                _checkpoint.ToInt64OrNull(),
                _settings,
                eventAppeared: (_, e) =>
                _observer.OnNext(_context.ReadAreaPoint(e)),
                subscriptionDropped: (_, reason, error) =>
                _observer.OnDropped(reason.ToString(), error));

            return(base.Open());
        }
 internal static TimelinePoint ReadAreaPoint(this EventStoreContext context, ResolvedEvent e) =>
 context.ReadAreaPoint(e, context.ReadAreaMetadata(e));