IoC Dependency injection into Custom HTTP Module - how? (ASP.NET)
I have a custom HTTP Module. I would like to inject the logger using my IoC framework, so I can log errors in the module. However, of course I don't get a constructor, so can't inject it into that. What's the best way to go about this? If you need the specific IoC container - I'm currently using Windsor, but may soon move to AutoFac. Thanks Mauricio Scheffer I just answered this question on my blog . See also http://lozanotek.com/blog/archive/2009/08/19/Autowire_IHttpModules_with_IoC.aspx First time I saw dependency injection to HttpModules in Spring.NET (not advertising this framework though)