public async Task <IList <TSaga> > Load()
        {
            var instances = await _provider.GetQueryable(_context)
                            .Where(_query.FilterExpression)
                            .ToListAsync(_cancellationToken)
                            .ConfigureAwait(false);

            return(instances);
        }
 public Task <TSaga> Load(DbContext dbContext, Guid correlationId, CancellationToken cancellationToken)
 {
     return(_provider.GetQueryable(dbContext).SingleOrDefaultAsync(x => x.CorrelationId == correlationId, cancellationToken));
 }
 public IQueryable <TSaga> GetQueryable(DbContext dbContext)
 {
     return(_customize(_source.GetQueryable(dbContext)));
 }