IoC Dependancy injection into Custom HTTP Module - how? (ASP.NET)
Posted
by Sosh
on Stack Overflow
See other posts from Stack Overflow
or by Sosh
Published on 2009-11-01T15:47:21Z
Indexed on
2010/05/18
5:40 UTC
Read the original article
Hit count: 183
Hi,
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
© Stack Overflow or respective owner