Exemplo n.º 1
0
        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());
 }
Exemplo n.º 3
0
 public override IObjectCache FindCache(ILifecycleContext context)
 {
     return(HttpContextLifecycle.HasContext()
                ? _http.FindCache(context)
                : _nonHttp.FindCache(context));
 }
Exemplo n.º 4
0
 public IObjectCache FindCache()
 {
     return(HttpContextLifecycle.HasContext()
                ? _http.FindCache()
                : _nonHttp.FindCache());
 }