Beispiel #1
0
 private void InternRollback(ITransactionParticipant participant)
 {
     try
     {
         participant.Rollback();
     }
     catch (ObjectDisposedException ex)
     {
         // Tolerate the fact that the transaction has already been disposed.
         Log.Debug(ex, $"{nameof(participant)} Transaction already disposed.");
     }
     catch (TransactionException txEx)
     {
         // Tolerate transaction exceptions
         Log.Debug(txEx, $"{nameof(participant)} Rollback failed.");
         Log.Trace(Outer.TraceTransaction());
     }
 }