Windsor PerWebRequest resolution in Application_Start

Posted by zaph0d on Stack Overflow See other posts from Stack Overflow or by zaph0d
Published on 2010-06-11T13:27:01Z Indexed on 2010/06/11 13:33 UTC
Read the original article Hit count: 175

I am injecting HttpContextBase into a caching class. HttpContextBase is registered as PerWebRequest. I interact with the caching class on each web request and this works fine, but I also need to initialise the cache at application start.

I understand that PerWebRequest does not work in Application_Start though:

http://stackoverflow.com/questions/2670717/castle-perrequestlifestyle-not-recognize

What is the best way to resolve this in my situation?

© Stack Overflow or respective owner

Related posts about castle-windsor

Related posts about perwebrequest