System.Transactions.VolatileEnlistmentEnded.EnterState C# (CSharp) Method

EnterState() private method

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

            // Nothing to do.
        }

Usage Example

Example #1
0
        internal override void Aborted(InternalEnlistment enlistment, Exception?e)
        {
            VolatileEnlistmentEnded.EnterState(enlistment);

            Debug.Assert(enlistment.Transaction.State != null);
            enlistment.Transaction.State.ChangeStateTransactionAborted(enlistment.Transaction, e);
        }
All Usage Examples Of System.Transactions.VolatileEnlistmentEnded::EnterState