public async Task DeleteIfExist(Guid[] operationIds) { await operationIds.ForEachAsyncSemaphore(8, operationId => _storage.DeleteIfExistAsync( UnconfirmedTransactionEntity.GeneratePartitionKey(operationId), UnconfirmedTransactionEntity.GenerateRowKey())); }
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(opId), UnconfirmedTransactionEntity.GenerateRowKey())); }