I need to implement pub/sub using Rebus between two microservices which are in two different assemblies. In this case, the publisher use an object which is in . The subscriber is in but declares the same type. (namespace, class is the same). Doing this I've encountered the following exception
System.FormatException: Could not get .NET type named 'TYPEA, ASSEMBLYA'
on sub side. Obviously it tries to get a type which is in another assembly, and of course it fails. Is there a way to use only the type + namespace and not the assembly type, so the pub/sub can be implemented, without creating an assembly and link it to both the sub and the publisher? Reading "Rebus" poor documentation there is a IMessageTypeNameConvention that can be implemented, but cannot find any example.