System.Transactions.EnlistmentStatePromoted.EnterState C# (CSharp) Метод

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

private EnterState ( InternalEnlistment enlistment ) : void
enlistment InternalEnlistment
Результат void
        internal override void EnterState(InternalEnlistment enlistment)
        {
            enlistment.State = this;
        }

Usage Example

        internal override void ChangeStatePromoted(InternalEnlistment enlistment, IPromotedEnlistment promotedEnlistment)
        {
            // Save the promoted enlistment because future notifications must be sent here.
            enlistment.PromotedEnlistment = promotedEnlistment;

            // The transaction is being promoted promote the enlistment as well
            EnlistmentStatePromoted.EnterState(enlistment);
        }