public async Task <IEnumerable <TEntity> > GetTopRecordsAsync(string partition, int n) { return(await _retryService.RetryAsync(async() => await _impl.GetTopRecordsAsync(partition, n), _onGettingRetryCount)); }
public async Task <IEnumerable <T> > GetTopRecordsAsync(string partition, int n) { return((await _storage.GetTopRecordsAsync(partition, n)).Select(Decrypt)); }
public Task <IEnumerable <TradeLogEntity> > GetLatestAsync(string assetPairId, int n) { return(_tableStorage.GetTopRecordsAsync(assetPairId.ToLower(), n)); }
public async Task <IEnumerable <IExpiryEntry> > GetSoonestAsync(int n) { return(await _tableStorage.GetTopRecordsAsync( ExpiryEntryEntity.ByDateTime.GeneratePartitionKey(), n)); }
public Task <IEnumerable <TranslatedSignalTableEntity> > GetTop(int count) { return(_tableStorage.GetTopRecordsAsync(TranslatedSignalTableEntity.GeneratePartitionKey(), count)); }
public async Task <Price> GetLatestAsync(string assetPair, OrderType type) { return(Mapper.Map <Price>( (await _storage.GetTopRecordsAsync( GetLatestPartitionKey(assetPair, type), 1)).SingleOrDefault())); }
public Task <IEnumerable <TEntity> > GetTopRecordsAsync(string partition, int n) => WrapAsync(() => _impl.GetTopRecordsAsync(partition, n), nameof(GetTopRecordsAsync), new { partition, n });