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?