示例#1
0
 public async Task DeleteIfExist(Guid[] operationIds)
 {
     foreach (var operationId in operationIds)
     {
         await _storage.DeleteIfExistAsync(UnconfirmedTransactionEntity.GeneratePartitionKey(),
                                           UnconfirmedTransactionEntity.GenerateRowKey(operationId));
     }
 }
示例#2
0
 public async Task <IEnumerable <IUnconfirmedTransaction> > GetAll()
 {
     return(await _storage.GetDataAsync(UnconfirmedTransactionEntity.GeneratePartitionKey()));
 }
示例#3
0
 public Task InsertOrReplace(IUnconfirmedTransaction tx)
 {
     return(_storage.InsertOrReplaceAsync(UnconfirmedTransactionEntity.Create(tx)));
 }
 public async Task <IObservableOperation> GetById(Guid opId)
 {
     return(await _storage.GetDataAsync(ObservableOperationEntity.ByOperationId.GeneratePartitionKey(),
                                        UnconfirmedTransactionEntity.GenerateRowKey(opId)));
 }