C# Class System.Transactions.Tests.NonMsdtcPromoterTests.NonMSDTCPromoterEnlistment

Inheritance: IPromotableSinglePhaseNotification
Show file Open project: dotnet/corefx

Public Methods

Method Description
Enlist ( Transaction txToEnlist = null, bool expectRejection = false, bool comparePromotedToken = false ) : bool
Initialize ( ) : void
NonMSDTCPromoterEnlistment ( Guid promoterType, byte promotedTokenToReturn, AutoResetEvent completionEvent, TransactionStatus spcResponse = TransactionStatus.Committed, bool failInitialize = false, bool failPromote = false, bool failSPC = false, bool failGetPromoterType = false, bool failGetId = false, bool incorrectNotificationObjectToSetDistributedTransactionId = false ) : System.Diagnostics
Promote ( ) : byte[]
Rollback ( SinglePhaseEnlistment singlePhaseEnlistment ) : void
SinglePhaseCommit ( SinglePhaseEnlistment singlePhaseEnlistment ) : void

Method Details

Enlist() public method

public Enlist ( Transaction txToEnlist = null, bool expectRejection = false, bool comparePromotedToken = false ) : bool
txToEnlist Transaction
expectRejection bool
comparePromotedToken bool
return bool

Initialize() public method

public Initialize ( ) : void
return void

NonMSDTCPromoterEnlistment() public method

public NonMSDTCPromoterEnlistment ( Guid promoterType, byte promotedTokenToReturn, AutoResetEvent completionEvent, TransactionStatus spcResponse = TransactionStatus.Committed, bool failInitialize = false, bool failPromote = false, bool failSPC = false, bool failGetPromoterType = false, bool failGetId = false, bool incorrectNotificationObjectToSetDistributedTransactionId = false ) : System.Diagnostics
promoterType Guid
promotedTokenToReturn byte
completionEvent System.Threading.AutoResetEvent
spcResponse TransactionStatus
failInitialize bool
failPromote bool
failSPC bool
failGetPromoterType bool
failGetId bool
incorrectNotificationObjectToSetDistributedTransactionId bool
return System.Diagnostics

Promote() public method

public Promote ( ) : byte[]
return byte[]

Rollback() public method

public Rollback ( SinglePhaseEnlistment singlePhaseEnlistment ) : void
singlePhaseEnlistment SinglePhaseEnlistment
return void

SinglePhaseCommit() public method

public SinglePhaseCommit ( SinglePhaseEnlistment singlePhaseEnlistment ) : void
singlePhaseEnlistment SinglePhaseEnlistment
return void