I have a console app that uses NServiceBus to publish a message to an Azure topic. However, NServiceBus creates a new topic with a different name, instead of the one I specified. Why is this?
My message configuration looks as follows. This means that messages of Type 'TheResponse' should go to a Topic with the name, "test1", right?
<UnicastBusConfig> <MessageEndpointMappings> <add Assembly="Messages" Type="Messages.TheResponse" Endpoint="test1"/> </MessageEndpointMappings> </UnicastBusConfig> <connectionStrings> <add name="NServiceBus/Transport" connectionString="Endpoint=sb://[my-namespace].servicebus.windows.net/;SharedSecretIssuer=[issuer];SharedSecretValue=[key]"></add> </connectionStrings>
What happens in reality is that NServiceBus creates a new Topic on Azure in the format MyAssemblyName-MyMachineName.events.
We use the Azure Service Bus transport.
How do I get NServiceBus to publish events to a specific Topic? Do I misunderstand the purpose of the MessageEndpointMappings?