NServiceBus.TransportReceiveContext.TransportReceiveContext C# (CSharp) Method

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
        public TransportReceiveContext(IncomingMessage receivedMessage, TransportTransaction transportTransaction, CancellationTokenSource cancellationTokenSource, IBehaviorContext parentContext)
            : base(parentContext)
        {
            this.cancellationTokenSource = cancellationTokenSource;
            Message = receivedMessage;
            Set(Message);
            Set(transportTransaction);
        }