Source/EasyNetQ/Consumer/InternalConsumer.cs
/// <summary>
/// Cancel means that an external signal has requested that this consumer should
/// be cancelled. This is _not_ the same as when an internal consumer stops consuming
/// because it has lost its channel/connection.
/// </summary>
Cancel means that an external signal has requested that this consumer should
be cancelled. This is _not_ the same as when an internal consumer stops consuming
because it has lost its channel/connection.
Cancel means that an external signal has requested that this consumer should be cancelled . This is _not_ the same as when an internal consumer stops consuming because it has lost its channel / connection .
private void Cancel()
        {
            var cancelled = Cancelled;
            if(cancelled != null) cancelled(this);
            var consumerCancelled = ConsumerCancelled;
            if(consumerCancelled != null) consumerCancelled(this, new ConsumerEventArgs(ConsumerTag));
        }
private void Cancel ( ) { var cancelled = Cancelled ; if ( cancelled != null ) cancelled ( this ) ; var consumerCancelled = ConsumerCancelled ; if ( consumerCancelled != null ) consumerCancelled ( this , new ConsumerEventArgs ( ConsumerTag ) ) ; }
Cancel means that an external signal has requested that this consumer should
be cancelled.
Cancel means that an external signal has requested that this consumer should be cancelled .
// copy to temp variable to be thread safe.