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;
}