Beispiel #1
0
 public async Task OnRollback(TransactionAbortedEvent message) =>
 await Task.Run(
     async() =>
 {
     await Task.Delay(10);
     return(ReceivedMessagesCount++);
 });
Beispiel #2
0
 public void OnRollback(TransactionAbortedEvent message) => ReceivedMessagesCount++;
 public async Task OnTransactionAborted(TransactionAbortedEvent message)
 {
     await _queueProducer.Rollback();
 }
Beispiel #4
0
 public void OnCommit(TransactionAbortedEvent message) => ReceivedMessagesCount++;
Beispiel #5
0
 private async Task OnTransactionAbortedAsync(TransactionAbortedEvent message) =>
 await _queueWriter.RollbackAsync().ConfigureAwait(false);