5.x NServiceBus

The endpoint name is used as a logical identifier when sending or receiving messages. It is also used for determining the name of the input queue the endpoint will be bound to. See Derived endpoint name for the algorithm used in Versions 5 and below to select endpoint name if backwards compatibility is a concern.

While the Dispose Pattern can no longer be used (since IEndpointInstance does not implement IDisposable) this is actually not a common use case since in most hosting scenarios the startup code is not in the same method as the shutdown code. For example