In NServiceBus 5 in order to send messages in “outside message handlers” applications like ASP.NET we used to declare IBus interface and implementation of IConfigurationSource with message type to endpoint mappings list.
In ver.6 though endpoint needs to be explicitly created (https://docs.particular.net/nservicebus/messaging/send-a-message):
var endpointConfiguration = new EndpointConfiguration(“EndpointName”);
var endpointInstance = await Endpoint.Start(endpointConfiguration)
First of all, could someone please explain me the idea behind creating endpoint in order to just send messages out? I’m confused as I was under impression that endpoint is something intended to listen for messages, not to send.
Second question is what should I set for endpoint name in the example? I need to use it in send-only asp.net application to send messages to multiple endpoints. Any name?