예제 #1
0
 public async Task <IObservableWallet> Get(string address)
 {
     return(await _storage.GetDataAsync(ObservableWalletEntity.GeneratePartitionKey(address), ObservableWalletEntity.GenerateRowKey(address)));
 }
예제 #2
0
 public async Task Delete(string address)
 {
     if (!await _storage.DeleteIfExistAsync(ObservableWalletEntity.GeneratePartitionKey(address), ObservableWalletEntity.GenerateRowKey(address)))
     {
         throw new BusinessException($"Wallet {address} not exist", ErrorCode.EntityNotExist);
     }
 }