Add support for service instance name
If the host is installed using an instance parameter, for example:
NServiceHost.exe /install /instance:PROD
Then the instance name should be added to the endpoint name, for example: "Endpointname$PROD". Also, when defining your own endpoint name convention, the instance name should be available, for example as a parameter to the convention method.
see here http://www.particular.net/articles/how-to-specify-your-input-queue-name and use
/endpointName:"MyEndpoint”.
OK @johnsimons pointed out that this is not exactly what u were asking for.
but would not "endpointName" suffice if you append your instance string to the endpoint config at install time?
True, but you then lose convention over configuration (ie back to the 2.6 days). We use it primarily to be able to install multiple test environments on the same server.
Not impossible, but having a /instance parameter is very useful.
with the direction we are moving with self hosting and bootstrapping https://github.com/Particular/NServiceBus.Bootstrap.WindowsService the use will be in full control of all service configuration. so no need to add this feature