Why is my RabbitMQ consumer receiving all messages when I'm specifying the topic I want to receive?
问题 I have different message types on the queue and I'm trying to create multiple C# consumers that each just take a certain type off the queue. Apparently, I'm supposed to be able to specify the routing key, like shown here, to get just those messages: channel.QueueBind(queue: queueName, exchange: "SandboxEventBus", routingKey: "MessageEvent"); No matter why I try, I get all of the messages from the queue and not just the ones with that routing key. What am I missing? This is the class: public