public async Task <IEnumerable <object> > QueryEvents(Guid streamId, long fromVersion)
        {
            string stateType = _typeResolver.ResolveTypeName <T>();
            IQueryable <StreamEvent>  query        = _table.BuildStreamEventsQuery(stateType, streamId, fromVersion);
            IEnumerable <StreamEvent> streamEvents = await query.ExecuteAsync().ConfigureAwait(continueOnCapturedContext: false);

            return(streamEvents.Select(DeserializeEvent).ToList().AsReadOnly());
        }
 private IQueryable <StreamEvent> BuildStreamEventsQuery(QueueTicket queueTicket)
 {
     return(_table.BuildStreamEventsQuery(queueTicket));
 }