Reputation: 6297
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)
Upvotes: 0
Views: 126
Reputation: 161783
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.
Upvotes: 1
Reputation: 5967
Just configure each one for different endpoint addresses in the config file, should work like a charm.
Upvotes: 1