Reputation: 4667
I have a scenario where I would like to add endpoints dynamically. I know this is completely possible if I write a self hosted WCF Service.
The basic idea of what I'm trying to do is to create a plug-gable WCF Host in IIS. Based on available Exports I want to create Endpoints. I am having a hard time figuring out where I can wire in to create the endpoints.
Upvotes: 0
Views: 2374
Reputation: 87238
You can create your own service host to use in IIS by using a custom ServiceHostFactory
. In the .svc file you specify which factory you want to use, and in the factory code you can add as many endpoints as you wish.
You can find more information about service host factories and this scenario at http://blogs.msdn.com/b/carlosfigueira/archive/2011/06/14/wcf-extensibility-servicehostfactory.aspx.
Upvotes: 0