AC,
You can easily do this. You can get the HttpContext that the current
code is running in through the static Current property on the HttpContext
class. If running outside of ASP.NET, then it should return null.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"AC" <sp**@aNOSPAMMEconnell.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Is it possible to use the System.Web.Caching.Cache object in a class library
project (where there's no HttpContext)? I have web application, but want
the cache to be managed by a library project (business layer).
-AC