C# 클래스 Rebus.Transport.AmbientTransactionContext

Provides an "ambient" context for stashing away an instance that implements the current ITransactionContext. The ambient transaction context is automatically preserved even though threads are changed etc.
파일 보기 프로젝트 열기: rebus-org/Rebus 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
DefaultGetter Func
DefaultSetter Action

공개 메소드들

메소드 설명
SetAccessors ( Action setter, Func getter ) : void

Sets the accessor functions used by Rebus to set the current transaction when executing handlers and getting the context by picking it up when sending messages

SetCurrent ( ITransactionContext transactionContext ) : void

Sets the current transaction context. Please note that in most cases, it is not necessary to set the context using this method - when using DefaultTransactionContextScope and DefaultSyncTransactionContextScope the ambient transaction context is automatically set/unset when the object is created/disposed.

메소드 상세

SetAccessors() 공개 정적인 메소드

Sets the accessor functions used by Rebus to set the current transaction when executing handlers and getting the context by picking it up when sending messages
public static SetAccessors ( Action setter, Func getter ) : void
setter Action
getter Func
리턴 void

SetCurrent() 공개 정적인 메소드

Sets the current transaction context. Please note that in most cases, it is not necessary to set the context using this method - when using DefaultTransactionContextScope and DefaultSyncTransactionContextScope the ambient transaction context is automatically set/unset when the object is created/disposed.
public static SetCurrent ( ITransactionContext transactionContext ) : void
transactionContext ITransactionContext
리턴 void

프로퍼티 상세

DefaultGetter 공개적으로 정적으로 프로퍼티

Gets the default set function (which is using CallContext.LogicalGetData to do its thing)
public static Func DefaultGetter
리턴 Func

DefaultSetter 공개적으로 정적으로 프로퍼티

Gets the default set function (which is using CallContext.LogicalSetData to do its thing)
public static Action DefaultSetter
리턴 Action