I have 2 microservices communicating with each other via NServiceBus. Let's say SVC1 sends a command to SVC2 which in response do something and emits some events (which eventually subscribed by other services including SVC1).
I have separate contract assembly for keeping Event/Commands/Messages types inside each services (viz SVC1, SVC2).
Now when a given command lets say CMD1 saved inside SVC1 solution (which is triggering this command BTW) and handled by SVC2, I am getting NServieBus no destination found which is self-explanatory that NServiceBus could not register respective handlers for the given command CMD1.
So my question is that, is it mandatory to keep the command types and it's handler in same namespace?
When i looked into my custom code which is finding all the types (of type commands) for registering it inside NServiceBus it just simply loading all the assemblies at the given path and ofcourse SVC2 had reference added of CMD1 then it simply fail to register it?
Thanks in advance and sorry for asking such a naive question.