I have a situation with a publisher and consumer sitting in the same application. I'm using autofac.
As I understand I need 2 Bus instances with 2 endpoints, one for publisher, one for subscriber.
I'm using autofac but I don't know how to create 2 bus instances, each with it's own subscribing classes (which should be resolved by autofac). In JEE/CDI I would use qualifiers, but as far as I see autofac has nothing like that (and named services aren't autowired).
So basically I have 2 problems:
- register 2 bus instances with each having a distinct set of subscribers.
- find the right instance later.
Any hints how this can be done?