I'm hosting NServiceBus in my own application to act as a subscriber. I have 4 projects in the solution: 1. Contracts - declare the event interfaces 2. Host - class library with API to start the bus. 3. Handlers - here the event handlers are implemented. 4. Console application to run it all.
- I see that the endpoint name is set correctly according to the console application name which is what I want and the queues are created accordingly.
- I successfully subscribe to the publisher events.
The problem: When the publisher tries to send a message to the subscriber - it tries to send to a queue that is named according to the event handlers namespace and not the endpoint name.
The exception that I get is that the publisher could not find the subscribers input queue.
Just for a sanity check, I manually created the input queue that is named according to the handlers namespace and indeed I started to receive the events.
So, is this a bug in NServiceBus or have I missed something very crucial?
Thanks....