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
Datei anzeigen Open project: rebus-org/Rebus Class Usage Examples

Public Methods

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

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

DefaultTransactionContextScope() public method

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

Dispose() public method

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