[rabbitmq-discuss] Best way to subscribe-unsubscribe-subscribe

Michael Klishin mklishin at gopivotal.com
Thu Aug 22 10:08:39 BST 2013

Valentin Polezhaev:

> My code successfully reads first messages from both A and B queues, but third time (second read from A) it stays at line
> var ea = (BasicDeliverEventArgs) _basicConsumer.Queue.Dequeue();
> and nothing happens.

Just to clarify:

this particular behavior is likely due to the following: both messages in A were already delivered,
and take off the (internal to the client) linked queue, so subsequent invocations
will block the caller until a new delivery arrives.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130822/45cbdd60/attachment.pgp>

More information about the rabbitmq-discuss mailing list