Possible to have multiple SAME WCF window service on same machine
Kind of like 开发者_Python百科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.
精彩评论