C# Class Rebus.Transport.DefaultTransactionContextScope

Default (async, as in: the Complete method returns a Task to be awaited) transaction scope that sets up an ambient ITransactionContext and removes it when the scope is disposed. Call await scope.Complete(); in order to end the scope by committing any actions enlisted to be executed.
Inheritance: IDisposable
Afficher le fichier Open project: rebus-org/Rebus Class Usage Examples

Méthodes publiques

Méthode Description
Complete ( ) : System.Threading.Tasks.Task

Ends the current transaction by either committing it or aborting it, depending on whether someone voted for abortion

DefaultTransactionContextScope ( ) : System

Creates a new transaction context and mounts it on AmbientTransactionContext.Current, making it available for Rebus to pick up

Dispose ( ) : void

Disposes the transaction context and removes it from AmbientTransactionContext.Current again

Method Details

Complete() public méthode

Ends the current transaction by either committing it or aborting it, depending on whether someone voted for abortion
public Complete ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

DefaultTransactionContextScope() public méthode

Creates a new transaction context and mounts it on AmbientTransactionContext.Current, making it available for Rebus to pick up
public DefaultTransactionContextScope ( ) : System
Résultat System

Dispose() public méthode

Disposes the transaction context and removes it from AmbientTransactionContext.Current again
public Dispose ( ) : void
Résultat void