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));
 }
예제 #4
0
 public async Task <IEnumerable <IExpiryEntry> > GetSoonestAsync(int n)
 {
     return(await _tableStorage.GetTopRecordsAsync(
                ExpiryEntryEntity.ByDateTime.GeneratePartitionKey(),
                n));
 }
예제 #5
0
 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()));
 }
예제 #7
0
 public Task <IEnumerable <TEntity> > GetTopRecordsAsync(string partition, int n)
 => WrapAsync(() => _impl.GetTopRecordsAsync(partition, n), nameof(GetTopRecordsAsync), new { partition, n });