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
Show file Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method Description
NotifyInDoubt ( ) : void

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

Private Methods

Method 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 method

Disposes of the transaction.
public Dispose ( ) : void
return void

EnlistVolatile() public method

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 .
return void

NotifyInDoubt() protected method

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

Rollback() public method

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