We are using conventions and have a ICommand interface of our own.
var conventions = endpointConfiguration.Conventions();
conventions.DefiningCommandsAs(t => t.Namespace != null && t.Namespace.StartsWith(“Messaging.Shared.Commands”));
conventions.DefiningEventsAs(t => t.Namespace != null && t.Namespace.StartsWith(“Messaging.Shared.Events”));
conventions.DefiningMessagesAs(t => t.Namespace != null && t.Namespace.StartsWith(“Messaging.Shared.Messages”));
And I can also see that I cannot even instantiate the RouteToEndpoint method call if it is not of the convention “Command”.