public object TryGet(IContext context)
{
Ensure.ArgumentNotNull(context, "context");
var scope = context.GetScope();
#if !NO_WEB
var httpScope = scope as HttpContext;
if(httpScope != null)
{
var entries = GetEntriesCache(httpScope);
return GetItemFromCache(context, httpScope, entries);
}
#endif
lock (_entries)
{
return GetItemFromCache(context, scope, _entries);
}
}