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

Inheritance: IPromotableSinglePhaseNotification
Afficher le fichier Open project: dotnet/corefx

Méthodes publiques

Méthode 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 méthode

public Enlist ( Transaction txToEnlist = null, bool expectRejection = false, bool comparePromotedToken = false ) : bool
txToEnlist Transaction
expectRejection bool
comparePromotedToken bool
Résultat bool

Initialize() public méthode

public Initialize ( ) : void
Résultat void

NonMSDTCPromoterEnlistment() public méthode

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
Résultat System.Diagnostics

Promote() public méthode

public Promote ( ) : byte[]
Résultat byte[]

Rollback() public méthode

public Rollback ( SinglePhaseEnlistment singlePhaseEnlistment ) : void
singlePhaseEnlistment SinglePhaseEnlistment
Résultat void

SinglePhaseCommit() public méthode

public SinglePhaseCommit ( SinglePhaseEnlistment singlePhaseEnlistment ) : void
singlePhaseEnlistment SinglePhaseEnlistment
Résultat void