System.Transactions.DurableEnlistmentCommitting.EnlistmentDone C# (CSharp) Метод

EnlistmentDone() приватный Метод

private EnlistmentDone ( InternalEnlistment enlistment ) : void
enlistment InternalEnlistment
Результат 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);
        }