コード例 #1
0
        public async Task <IPaginationResult <IWalletBalance> > GetBalances(int take, string continuation)
        {
            var t = await _storage.GetDataAsync(WalletBalanceEntity.GeneratePartitionKey());

            var result = await _storage.GetDataWithContinuationTokenAsync(WalletBalanceEntity.GeneratePartitionKey(), take, continuation);

            return(PaginationResult <IWalletBalance> .Create(result.Entities.Cast <IWalletBalance>(), result.ContinuationToken));
        }
コード例 #2
0
 public Task <IPaginationResult <IAsset> > GetPaged(int take, string continuation)
 {
     return(Task.FromResult(PaginationResult <IAsset> .Create(_mockList, null)));
 }
コード例 #3
0
        public async Task <IPaginationResult <IWalletBalance> > GetBalancesAsync(int take, string continuation)
        {
            var result = await _storage.GetDataWithContinuationTokenAsync(take, continuation);

            return(PaginationResult <IWalletBalance> .Create(result.Entities, result.ContinuationToken));
        }
コード例 #4
0
        public Task <IPaginationResult <IAsset> > GetPagedAsync(int take, int skip)
        {
            var contination = take + skip >= _mockList.Count ? null : (skip + take).ToString();

            return(Task.FromResult(PaginationResult <IAsset> .Create(_mockList.Skip(skip).Take(take), contination)));
        }