NServiceBus icon indicating copy to clipboard operation
NServiceBus copied to clipboard

Add support for service instance name

Open johannesg opened this issue 14 years ago • 4 comments

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.

johannesg avatar Apr 27 '12 09:04 johannesg

see here http://www.particular.net/articles/how-to-specify-your-input-queue-name and use

/endpointName:"MyEndpoint”.

SimonCropp avatar Jul 01 '13 06:07 SimonCropp

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?

SimonCropp avatar Jul 01 '13 06:07 SimonCropp

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.

johannesg avatar Feb 12 '14 07:02 johannesg

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

SimonCropp avatar Oct 16 '14 06:10 SimonCropp