pdiddy
pdiddy

Reputation: 6297

Possible to have multiple SAME WCF window service on same machine

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

Answers (2)

John Saunders
John Saunders

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

Jimmy Hoffa
Jimmy Hoffa

Reputation: 5967

Just configure each one for different endpoint addresses in the config file, should work like a charm.

Upvotes: 1

Related Questions