System.Transactions.VolatileEnlistmentPreparing.ForceRollback C# (CSharp) Method

ForceRollback() private method

private ForceRollback ( InternalEnlistment enlistment, Exception e ) : void
enlistment InternalEnlistment
e Exception
return void
        internal override void ForceRollback(InternalEnlistment enlistment, Exception e)
        {
            // Change enlistment state to aborting
            VolatileEnlistmentEnded.EnterState(enlistment);

            // Start the transaction aborting
            enlistment.Transaction.State.ChangeStateTransactionAborted(enlistment.Transaction, e);

            // Process Finished InternalEnlistment
            enlistment.FinishEnlistment();
        }