Configure your IoC and setup the Common Service Adapter

Jul 25, 2010 at 10:45 AM

Configure your IoC and setup the Common Service Adapter

Where should I configure my IoC and setup the Common Service Adapter in WCF? WCF doesn't have Main() or App.xaml or etc... 

Nov 13, 2012 at 2:59 PM

I have exactly the same question. Is it possible to get an example on how to accomplish this? Thanks

Coordinator
Nov 13, 2012 at 6:31 PM

How you approach this really comes down to how you host your services. For instance if you host them in IIS then you can use the Application_Start event in the global.asax. For non IIS hosting it really depends. Here are some suggestions http://blogs.msdn.com/b/wenlong/archive/2006/01/11/511514.aspx and this StackOverflow http://stackoverflow.com/questions/739268/wcf-application-start-event should also provide you with ideas on what you can use

Hope this helps!