Learner
Learner

Reputation: 3396

wcf - choosing what services to load from config file

I have multiple WCF services pretty much independent one of the other which form together a nice core system. Third parties integrate to our system very easy, everyone is happy... BUT

The problem appears when we would like to restrict the usage of certain WCF service(s) for certain customers, based on certain licenses. Because we don't want to allow this opportunity for third parties to edit the config file and get full access to all our wcf services.

So, how could I restrict the usage of certain service(s)? I was thinking maybe there is an option to select which service to load from config file (based on the license). Is that possible? What other options would I have?

Thanks in advance.

Upvotes: 1

Views: 115

Answers (1)

marc_s
marc_s

Reputation: 754868

If you have a managed app (e.g. console app or Windows NT Service), you're basically in control of creating and managing the ServiceHost instance(s) that will "serve up" the WCF services.

Extending that service host, you could implement any kind of flexibility in loading the appropriate WCF services you need.

Read more:

Upvotes: 2

Related Questions