Kind of like the named instanced sql server.
I'd like to install the same wcf window service on the same machine so having multiple instances of it.
I'd like each of them to connect to a different Databases (different environment)
Kind of like the named instanced sql server.
I'd like to install the same wcf window service on the same machine so having multiple instances of it.
I'd like each of them to connect to a different Databases (different environment)
Just configure each one for different endpoint addresses in the config file, should work like a charm.
You could try something fancy, using a custom ServiceHostFactory. It could create one ServiceHost per environment you wanted. Each custom ServiceHost would then create instances of your service to operate in that particular environment.