internal void ForceRollback()
 {
     try
     {
         this.transaction.Rollback();
     }
     catch (ObjectDisposedException exception)
     {
         MsmqDiagnostics.ExpectedException(exception);
     }
     catch (TransactionException exception2)
     {
         MsmqDiagnostics.ExpectedException(exception2);
     }
     this.batchFinished = true;
 }
Exemplo n.º 2
0
        internal void ForceCommit()
        {
            try
            {
                this.transaction.Commit();
            }
            catch (ObjectDisposedException ex)
            {
                MsmqDiagnostics.ExpectedException(ex);
            }
            catch (TransactionException ex)
            {
                MsmqDiagnostics.ExpectedException(ex);
            }

            this.batchFinished = true;
        }