public async Task <Maybe <PagedResult <RemarkStatistics> > > BrowseRemarkStatisticsAsync(BrowseRemarkStatistics query) => await _providerClient.GetCollectionAsync( async() => await _statisticsServiceClient.BrowseRemarkStatisticsAsync <RemarkStatistics>(query));
public async Task <Maybe <PagedResult <RemarkStatistics> > > BrowseAsync(BrowseRemarkStatistics query) => await _database.RemarkStatistics() .Query(query) .PaginateAsync();
public static IMongoQueryable <RemarkStatistics> Query(this IMongoCollection <RemarkStatistics> statistics, BrowseRemarkStatistics query) { var values = statistics.AsQueryable(); return(values); }
public async Task <Maybe <PagedResult <RemarkStatistics> > > BrowseRemarkStatisticsAsync(BrowseRemarkStatistics query) => await _storageClient .GetFilteredCollectionAsync <RemarkStatistics, BrowseRemarkStatistics>(query, RemarkStatisticsEndpoint);
public async Task <Maybe <PagedResult <dynamic> > > BrowseRemarkStatisticsAsync(BrowseRemarkStatistics query) => await BrowseRemarkStatisticsAsync <dynamic>(query);
public async Task <Maybe <PagedResult <T> > > BrowseRemarkStatisticsAsync <T>(BrowseRemarkStatistics query) where T : class { Logger.Debug($"Requesting BrowseRemarkStatisticsAsync, page:{query.Page}, results:{query.Results}"); var queryString = RemarkStatisticsEndpoint.ToQueryString(query); return(await _serviceClient .GetCollectionAsync <T>(_name, queryString)); }