System.Transactions.Enlistment.Enlistment C# (CSharp) Method

Enlistment() private method

private Enlistment ( InternalTransaction transaction, IEnlistmentNotification twoPhaseNotifications, ISinglePhaseNotification singlePhaseNotifications, Transaction atomicTransaction, EnlistmentOptions enlistmentOptions ) : System.Diagnostics
transaction InternalTransaction
twoPhaseNotifications IEnlistmentNotification
singlePhaseNotifications ISinglePhaseNotification
atomicTransaction Transaction
enlistmentOptions EnlistmentOptions
return System.Diagnostics
        internal Enlistment(
            InternalTransaction transaction,
            IEnlistmentNotification twoPhaseNotifications,
            ISinglePhaseNotification singlePhaseNotifications,
            Transaction atomicTransaction,
            EnlistmentOptions enlistmentOptions)
        {
            if ((enlistmentOptions & EnlistmentOptions.EnlistDuringPrepareRequired) != 0)
            {
                _internalEnlistment = new InternalEnlistment(
                    this,
                    transaction,
                    twoPhaseNotifications,
                    singlePhaseNotifications,
                    atomicTransaction
                    );
            }
            else
            {
                _internalEnlistment = new Phase1VolatileEnlistment(
                this,
                transaction,
                twoPhaseNotifications,
                singlePhaseNotifications,
                atomicTransaction
                );
            }
        }

Same methods

Enlistment::Enlistment ( )
Enlistment::Enlistment ( Guid resourceManagerIdentifier, InternalTransaction transaction, IEnlistmentNotification twoPhaseNotifications, ISinglePhaseNotification singlePhaseNotifications, Transaction atomicTransaction ) : System.Diagnostics
Enlistment::Enlistment ( IEnlistmentNotification twoPhaseNotifications, InternalTransaction transaction, Transaction atomicTransaction ) : System.Diagnostics
Enlistment::Enlistment ( IEnlistmentNotification twoPhaseNotifications, object syncRoot ) : System.Diagnostics
Enlistment::Enlistment ( InternalEnlistment internalEnlistment ) : System.Diagnostics
Enlistment::Enlistment ( InternalTransaction transaction, IPromotableSinglePhaseNotification promotableSinglePhaseNotification, Transaction atomicTransaction ) : System.Diagnostics