<div dir="ltr">We are using the C# .NET client library.<div><br></div><div>I create a channel like so</div><div><br></div><div>channel.ExchangeDeclare(workExchangeName, <b>ExchangeType.Direct</b>);</div><div><br></div><div>
Then bind a queue like�</div><div><br></div><div>channel.QueueBind(this.WorkQueueName, workExchangeName, <b>BuildRoutingKey(buildNumber)</b>);</div><div><br></div><div>Today I was trying to debug a failing message from a different environment. I took the message's JSON from that server, via the Management UI, and manually created a message on my local machine, again via the Management UI. There was no option to set a specific RoutingKey, it created one for me with the same name as the queue 'WorkQueue'.</div>
<div><br></div><div>The local RabbitMQ had a couple of existing messages with a RoutingKey of 'Development:STACK_1_WEBSERVER_V2:1:2.9.0.0'</div><div><br></div><div>When I call channel.<b>BasicGet</b>(this.WorkQueueName, false) in a loop it dequeues all three messages even though the channel was created to look at a queue and exchange with the routing key of 'Development:STACK_1_WEBSERVER_V2:1:2.9.0.0'</div>
<div><br></div><div>Any idea why it would be ignoring the RoutingKey?</div><div><div><br></div><div>Thanks</div><div><br></div><div><br></div>-- <br>Patrick Long - Munkiisoft Ltd
</div></div>