C# 클래스 NServiceBus.Transport.MessageContext

Allows the transport to pass relevant info to the pipeline.
파일 보기 프로젝트 열기: Particular/NServiceBus 1 사용 예제들

공개 메소드들

메소드 설명
MessageContext ( string messageId, string>.Dictionary headers, byte body, TransportTransaction transportTransaction, CancellationTokenSource receiveCancellationTokenSource, ContextBag context ) : System.Collections.Generic

Initializes the context.

메소드 상세

MessageContext() 공개 메소드

Initializes the context.
public MessageContext ( string messageId, string>.Dictionary headers, byte body, TransportTransaction transportTransaction, CancellationTokenSource receiveCancellationTokenSource, ContextBag context ) : System.Collections.Generic
messageId string Native message id.
headers string>.Dictionary The message headers.
body byte The message body.
transportTransaction TransportTransaction Transaction (along with connection if applicable) used to receive the message.
receiveCancellationTokenSource System.Threading.CancellationTokenSource /// Allows the pipeline to flag that it has been aborted and the receive operation should be rolled back. /// It also allows the transport to communicate to the pipeline to abort if possible. Transports should check if the token /// has been aborted after invoking the pipeline and roll back the message accordingly. ///
context ContextBag Any context that the transport wants to be available on the pipeline.
리턴 System.Collections.Generic