[rabbitmq-discuss] .NET Subscription class
Наиль Салихов
aflaed at gmail.com
Mon Apr 22 08:09:12 BST 2013
Hello!
Why *Subscription *class hasn't constructor overload with client consumer
tag?
Inheritance from this class looks not very well, because *BasicConsume*method called is base class, and we should call
*BasicCancel*:
public CustomSubscription(IModel model, string queueName, bool noAck)
: base(model, queueName, noAck)
{
m_model.BasicCancel(m_consumerTag);
m_consumerTag = m_model.BasicConsume(m_queueName, m_noAck, "qweqwe",
m_consumer);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130422/86686551/attachment.htm>
More information about the rabbitmq-discuss
mailing list