Example #1
0
        public Task <IList <IEvent> > FetchAllAsync(DateTime?before = null, DateTime?after = null, int version = 0, CancellationToken token = default(CancellationToken))
        {
            var handler = new EventsQueryHandler(_selector, before, after, version);

            return(_connection.FetchAsync(handler, null, token));
        }
Example #2
0
        public IList <IEvent> FetchAll(DateTime?before = null, DateTime?after = null, int version = 0)
        {
            var handler = new EventsQueryHandler(_selector, before, after, version);

            return(_connection.Fetch(handler, null));
        }