public async Task DeleteIncomingTransactionObservationAsync(string address) { var observation = await _observationRepository.GetAsync(address); if (observation == null) { // nothing to do return; } observation.IsIncomingObserved = false; if (observation.IsIncomingObserved == false && observation.IsOutgoingObserved == false) { await _observationRepository.DeleteIfExistAsync(address); } else { await _observationRepository.InsertOrReplaceAsync(observation); } }
public async Task DeleteBalanceObservationAsync(string address) { await _observationRepository.DeleteIfExistAsync(address); await _walletBalanceRepository.DeleteIfExistAsync(address); }
public async Task DeleteBalanceObservationAsync(string address) { await _observationRepository.DeleteIfExistAsync(address); await _walletBalanceRepository.DeleteIfExistAsync(_blockchainAssetsService.GetNativeAsset().Id, address); }
public async Task DeleteTxBroadcastAsync(Guid operationId) { var deleteObservationTask = _observationRepository.DeleteIfExistAsync(operationId.ToString()); var deleteBroadcastTask = _broadcastRepository.DeleteAsync(operationId); await Task.WhenAll(deleteObservationTask, deleteBroadcastTask); }