[rabbitmq-discuss] .NET client - prefetch issue

Just Looking just.looking.76 at gmail.com
Fri Nov 9 16:39:12 GMT 2012


Hi 

Firstly, new to rabbit-mq, and doing some proof of concept work.

I have built a .NET consumer that is using the following code to get 
messages from a queue

using (IConnection conn = factory.CreateConnection())
            {
                using (var channel = conn.CreateModel())
                {
                    channel.BasicQos(0, 1, false);
                    channel.ExchangeDeclare(exchangeName, 
ExchangeType.Direct, true, false, null);
                    channel.QueueDeclare(queueName, true, false, false, 
null);
                    channel.QueueBind(queueName, exchangeName, 
"optional-routing-key");



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20121109/7aa8b92b/attachment.htm>


More information about the rabbitmq-discuss mailing list