System.Transactions.VolatileEnlistmentPrepared.EnterState C# (CSharp) Méthode

EnterState() private méthode

private EnterState ( InternalEnlistment enlistment ) : void
enlistment InternalEnlistment
Résultat void
        internal override void EnterState(InternalEnlistment enlistment)
        {
            // Set the enlistment state
            enlistment.State = this;

            // Wait for Committed
        }

Usage Example

        internal override void Prepared(InternalEnlistment enlistment)
        {
            // Change the enlistments state to prepared.
            VolatileEnlistmentPrepared.EnterState(enlistment);

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