NServiceBus.TransportReceiveContext.AbortReceiveOperation C# (CSharp) Method

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
        public void AbortReceiveOperation()
        {
            cancellationTokenSource.Cancel();
        }