public IObjectCache FindCache(Type pluginType) { ILifecycle lifecycle = ForType(pluginType).Lifecycle; return(lifecycle == null ? _transientCache : lifecycle.FindCache()); }
public IObjectCache FindCache() { if (!InstanceContextLifecycle.HasContext()) { return(_nonWcf.FindCache()); } return(_wcf.FindCache()); }
public override IObjectCache FindCache(ILifecycleContext context) { return(HttpContextLifecycle.HasContext() ? _http.FindCache(context) : _nonHttp.FindCache(context)); }
public IObjectCache FindCache() { return(HttpContextLifecycle.HasContext() ? _http.FindCache() : _nonHttp.FindCache()); }