System.Transactions.Tests.NonMsdtcPromoterTests.MyEnlistment.MyEnlistment C# (CSharp) Method

MyEnlistment() public method

public MyEnlistment ( AutoResetEvent outcomeReceived, bool votePrepared = true, bool enlistDuringPrepare = false, EnlistmentOptions enlistOptions = EnlistmentOptions.None, bool expectSuccessfulEnlist = true, AutoResetEvent secondEnlistmentCompleted = null ) : System.Diagnostics
outcomeReceived System.Threading.AutoResetEvent
votePrepared bool
enlistDuringPrepare bool
enlistOptions EnlistmentOptions
expectSuccessfulEnlist bool
secondEnlistmentCompleted System.Threading.AutoResetEvent
return System.Diagnostics
            public MyEnlistment(
                AutoResetEvent outcomeReceived,
                bool votePrepared = true,
                bool enlistDuringPrepare = false,
                EnlistmentOptions enlistOptions = EnlistmentOptions.None,
                bool expectSuccessfulEnlist = true,
                AutoResetEvent secondEnlistmentCompleted = null
                )
            {
                _outcomeReceived = outcomeReceived;
                _votePrepared = votePrepared;
                _enlistDuringPrepare = enlistDuringPrepare;
                _enlistOptions = enlistOptions;
                _expectSuccessfulEnlist = expectSuccessfulEnlist;
                _secondEnlistmentCompleted = secondEnlistmentCompleted;
            }