Contour.Transport.RabbitMQ.Internal.RabbitChannel.TryStopConsuming C# (CSharp) Method

TryStopConsuming() public method

The try stop consuming.
public TryStopConsuming ( string consumerTag ) : bool
consumerTag string /// The consumer tag. ///
return bool
        public bool TryStopConsuming(string consumerTag)
        {
            try
            {
                this.Native.BasicCancel(consumerTag);
                return true;
            }
            catch
            {
                return false;
            }
        }