[rabbitmq-discuss] Example of DefaultBasicConsumer use
Tony Garnock-Jones
tonyg at lshift.net
Fri Sep 12 12:51:27 BST 2008
Hi all,
I've just committed
http://hg.rabbitmq.com/rabbitmq-dotnet-client/file/tip/src/examples/LowlevelLogTail.cs,
which is an example of consuming from a queue using the very low-level
DefaultBasicConsumer, rather than using the higher-level
QueueingBasicConsumer or Subscription objects.
This can be useful for those wanting to avoid running background threads
of their own simply to get asynchronous deliveries from queues. Be
warned, however, by the comments in the API docs for
DefaultBasicConsumer [1] and by the details in section 2.9 of the user
guide [2]!
Regards,
Tony
[1]
http://www.rabbitmq.com/releases/rabbitmq-dotnet-client/v1.4.0/rabbitmq-dotnet-client-1.4.0-net-2.0-htmldoc/type-RabbitMQ.Client.DefaultBasicConsumer.html
[2]
http://www.rabbitmq.com/releases/rabbitmq-dotnet-client/v1.4.0/rabbitmq-dotnet-client-1.4.0-user-guide.pdf
--
[][][] Tony Garnock-Jones | Mob: +44 (0)7905 974 211
[][] LShift Ltd | Tel: +44 (0)20 7729 7060
[] [] http://www.lshift.net/ | Email: tonyg at lshift.net
More information about the rabbitmq-discuss
mailing list