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
파일 보기 프로젝트 열기: rebus-org/Rebus 1 사용 예제들

공개 메소드들

메소드 설명
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