C# Class Nexus.Transactions.Transaction

A transaction.
This transaction class has no timeout. This class allows sharing of transactions across threads, as the abient transaction is not restricted to a single thread.
Inheritance: IDisposable
Afficher le fichier Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Méthodes publiques

Méthode Description
Dispose ( ) : void

Disposes of the transaction.

EnlistVolatile ( IEnlistmentNotification p_entResourceManager, EnlistmentOptions p_eopOptions ) : void

Enlists a resource manager in this transaction.

Rollback ( ) : void

Tells the participating resource managers to rollback their changes.

Méthodes protégées

Méthode Description
NotifyInDoubt ( ) : void

Tells the participating resource managers that the transaction status is in doubt.

Private Methods

Méthode Description
Commit ( ) : void

Tells al participanting resource managers to commit their changes.

Prepare ( ) : bool

Prepares the enlisted resource managers for committal.

Method Details

Dispose() public méthode

Disposes of the transaction.
public Dispose ( ) : void
Résultat void

EnlistVolatile() public méthode

Enlists a resource manager in this transaction.
Thrown if is not /// .
public EnlistVolatile ( IEnlistmentNotification p_entResourceManager, EnlistmentOptions p_eopOptions ) : void
p_entResourceManager IEnlistmentNotification
p_eopOptions EnlistmentOptions The enlistment options. This value must be .
Résultat void

NotifyInDoubt() protected méthode

Tells the participating resource managers that the transaction status is in doubt.
protected NotifyInDoubt ( ) : void
Résultat void

Rollback() public méthode

Tells the participating resource managers to rollback their changes.
public Rollback ( ) : void
Résultat void