C# Class NServiceBus.TransportReceiveContext

Context containing a physical message.
Inheritance: BehaviorContext, ITransportReceiveContext
Show file Open project: Particular/NServiceBus Class Usage Examples

Public Methods

Method Description
AbortReceiveOperation ( ) : void

Allows the pipeline to flag that it has been aborted and the receive operation should be rolled back.

TransportReceiveContext ( IncomingMessage receivedMessage, TransportTransaction transportTransaction, CancellationTokenSource cancellationTokenSource, IBehaviorContext parentContext ) : System.Threading

Creates a new transport receive context.

Method Details

AbortReceiveOperation() public method

Allows the pipeline to flag that it has been aborted and the receive operation should be rolled back.
public AbortReceiveOperation ( ) : void
return void

TransportReceiveContext() public method

Creates a new transport receive context.
public TransportReceiveContext ( IncomingMessage receivedMessage, TransportTransaction transportTransaction, CancellationTokenSource cancellationTokenSource, IBehaviorContext parentContext ) : System.Threading
receivedMessage IncomingMessage The received message.
transportTransaction TransportTransaction The transport transaction.
cancellationTokenSource 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. ///
parentContext IBehaviorContext The parent context.
return System.Threading