-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Learning NServiceBus - Second Edition - Second Edition
By :
The endpoint name is very important as it drives the names of all the queues that NServiceBus creates. In an endpoint hosted by the NServiceBus.Host package, the endpoint name is automatically determined by locating the EndpointConfig class (the class that implements IConfigureThisEndpoint, which is automatically created for you when you include the NServiceBus NuGet package) and using the namespace of that class as the endpoint name. This is almost always the same as the Visual Studio project name, unless you have gone to lengths to change it.
When we are hosting NServiceBus on our own, there is no EndpointConfig, so instead, NServiceBus will default to the namespace of the class calling NServiceBus.Bus.Create().
We can, however, take control and explicitly set the endpoint name if we really want to:
cfg.EndpointName("MyEndpoint");Keep in mind that the string need not be a constant. For example, we could pull in an appSetting, which would allow us to host Test and...
Change the font size
Change margin width
Change background colour