DI with WCF -- Where do I initialize the Windsor Container when using WAS hosting?
I was reading a开发者_StackOverflown exellent article about how to use dependency injection with WCF Services. Unfortunately, it only shows how to instantiate and register the Windsor Container in a global.asax file. I'm looking to use WAS for my hosting so global.asax will not get called. Does anyone know where I should register the container? Do I have to extend the WindsorServiceHostFactory an do it in there?
I'm not 100% up to date with development of WCF Facility so it may be already there, but if it's not take a look at this post and the comments.
精彩评论