Configure multiple instances of IBus that targets different instances of Rabbitmq for different events via microsoft dependency injection. #1707
|
Hi, Is it possible to have one application connect to multiple Rabbitmq instances (or virtual hosts) for different messages ? Similarly to the configuration of http clients at startup, where for each class that does http calls, we can configure an http client different from the others. Registering easynetq multiple times with different connection string does not work as the services are registered if no other has been already registered as the ServiceRegisterExtensions.cs reads. We could also imagine in the constructor have multiple implementations of the IBus and choose the right one depending on the class. Gautier DERVAUX |
Replies: 1 comment 2 replies
|
are there any solutions on this matter ? |
Use somethink like #1845 (comment)