public async Task RepostHangedOperations() { var timestampBeforeConsideredHanged = DateTime.UtcNow.AddMinutes(-10); var hangedOperations = await _operationsRepository.GetHandedOperationsIds(timestampBeforeConsideredHanged); foreach (var operation in hangedOperations) { // What will happen if the transaction succeeded and we try to repost it var(operationId, txHash) = await SendTransactionAsync(operation.OperationId, operation.TransactionData); await SetTransactionHash(operationId, txHash); } }