开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜