C# Class NLight.Transactions.TransactionContext

Represents a transaction context.
Inheritance: IDisposable
Afficher le fichier Open project: slorion/nlight Class Usage Examples

Private Properties

Свойство Type Description
Enter void
OnStateChanged void
Parent_TransactionContextStateChanged void
VoteCommitFromChild void
VoteRollbackFromChild void

Méthodes publiques

Méthode Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Exit ( ) : void

Exits the transaction context. Its commit or rollback status becomes final.

GetController ( ) : TransactionContext

Gets the controlling transaction context.

TransactionContext ( TransactionContextAffinity affinity ) : System

Initializes a new instance of the TransactionContext class.

VoteCommit ( ) : void

Votes commit for the currently executing operation. A rollback must not have been voted before.

VoteRollback ( ) : void

Votes rollback for the currently executing operation.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases resources.

Private Methods

Méthode Description
Enter ( ) : void

Enters the transaction context. It will become the new current transaction context.

OnStateChanged ( TransactionContextState previousState, TransactionContextState newState ) : void

Raises the StateChanged event.

Parent_TransactionContextStateChanged ( object sender, TransactionContextStateChangedEventArgs e ) : void

Handles the parent transaction context's StateChanged event.

VoteCommitFromChild ( ) : void

Casts the commit vote on parent from a child.

VoteRollbackFromChild ( ) : void

Casts the rollback vote on parent from a child.

Method Details

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

Releases resources.
protected Dispose ( bool disposing ) : void
disposing bool true if this instance is disposed manually; false if it is disposed during finalization.
Résultat void

Exit() public méthode

Exits the transaction context. Its commit or rollback status becomes final.
/// The requested transaction context state change is invalid. ///
public Exit ( ) : void
Résultat void

GetController() public méthode

Gets the controlling transaction context.
public GetController ( ) : TransactionContext
Résultat TransactionContext

TransactionContext() public méthode

Initializes a new instance of the TransactionContext class.
public TransactionContext ( TransactionContextAffinity affinity ) : System
affinity TransactionContextAffinity The transaction context affinity.
Résultat System

VoteCommit() public méthode

Votes commit for the currently executing operation. A rollback must not have been voted before.
/// The requested transaction context state change is invalid. ///
public VoteCommit ( ) : void
Résultat void

VoteRollback() public méthode

Votes rollback for the currently executing operation.
/// The requested transaction context state change is invalid. ///
public VoteRollback ( ) : void
Résultat void