I'm having trouble at the moment with running multiple environments simultaneously with easynetq
When I publish a message on my dev
environment the message is also picked up in my staging
and acceptance
environments.
The way around this is to create an exchange per environment using the advanced bus with something like
string exchangeName = String.Format("MyProject_{0}", environmentName);
return advancedBus.ExchangeDeclare(exchangeName, ExchangeType.Direct);
However I now can't figure out how to make this the default exchange that will be used if I resolve an IBus
interface.
Can this be done or do I have to go down the route of only using the IAdvancedBus
?