System.Transactions.DurableEnlistmentCommitting.EnlistmentDone C# (CSharp) Method

EnlistmentDone() private method

private EnlistmentDone ( InternalEnlistment enlistment ) : void
enlistment InternalEnlistment
return void
        internal override void EnlistmentDone(InternalEnlistment enlistment)
        {
            // EnlistmentDone should be treated the same as Committed from this state.
            // This eliminates a race between the SPC call and the EnlistmentDone call.

            // Transition to the ended state
            DurableEnlistmentEnded.EnterState(enlistment);

            // Make the transaction commit
            enlistment.Transaction.State.ChangeStateTransactionCommitted(enlistment.Transaction);
        }