C# Класс 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.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

Complete() публичный Метод

Ends the current transaction by either committing it or aborting it, depending on whether someone voted for abortion
public Complete ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

DefaultTransactionContextScope() публичный Метод

Creates a new transaction context and mounts it on AmbientTransactionContext.Current, making it available for Rebus to pick up
public DefaultTransactionContextScope ( ) : System
Результат System

Dispose() публичный Метод

Disposes the transaction context and removes it from AmbientTransactionContext.Current again
public Dispose ( ) : void
Результат void