C# Class System.Transactions.TransactionManager

Show file Open project: dotnet/corefx Class Usage Examples

Private Properties

Property Type Description
CheckTransactionManager DistributedTransactionManager
ConvertToByteArray byte[]
FindOrCreatePromotedTransaction Transaction
FindPromotedTransaction Transaction
FireDistributedTransactionStarted void
GetRecoveryInformation byte[]
ProcessExistingTransactions void
ValidateIsolationLevel void
ValidateTimeout TimeSpan

Public Methods

Method Description
RecoveryComplete ( Guid resourceManagerIdentifier ) : void
RecoveryComplete ( System resourceManagerIdentifier ) : void
Reenlist ( Guid resourceManagerIdentifier, byte recoveryInformation, IEnlistmentNotification enlistmentNotification ) : Enlistment
Reenlist ( System resourceManagerIdentifier, byte recoveryInformation, System enlistmentNotification ) : System.Transactions.Enlistment

Private Methods

Method Description
CheckTransactionManager ( string nodeName ) : DistributedTransactionManager
ConvertToByteArray ( object thingToConvert ) : byte[]
FindOrCreatePromotedTransaction ( Guid transactionIdentifier, DistributedTransaction dtx ) : Transaction
FindPromotedTransaction ( Guid transactionIdentifier ) : Transaction
FireDistributedTransactionStarted ( Transaction transaction ) : void
GetRecoveryInformation ( string startupInfo, byte resourceManagerRecoveryInformation ) : byte[]
ProcessExistingTransactions ( TransactionStartedEventHandler eventHandler ) : void
ValidateIsolationLevel ( IsolationLevel transactionIsolationLevel ) : void

This static function throws an ArgumentOutOfRange if the specified IsolationLevel is not within the range of valid values.

ValidateTimeout ( TimeSpan transactionTimeout ) : TimeSpan

This static function throws an ArgumentOutOfRange if the specified TimeSpan does not meet requirements of a valid transaction timeout. Timeout values must be positive.

Method Details

RecoveryComplete() public static method

public static RecoveryComplete ( Guid resourceManagerIdentifier ) : void
resourceManagerIdentifier Guid
return void

RecoveryComplete() public static method

public static RecoveryComplete ( System resourceManagerIdentifier ) : void
resourceManagerIdentifier System
return void

Reenlist() public static method

public static Reenlist ( Guid resourceManagerIdentifier, byte recoveryInformation, IEnlistmentNotification enlistmentNotification ) : Enlistment
resourceManagerIdentifier Guid
recoveryInformation byte
enlistmentNotification IEnlistmentNotification
return Enlistment

Reenlist() public static method

public static Reenlist ( System resourceManagerIdentifier, byte recoveryInformation, System enlistmentNotification ) : System.Transactions.Enlistment
resourceManagerIdentifier System
recoveryInformation byte
enlistmentNotification System
return System.Transactions.Enlistment