public HybridHttpContextLifecycle()
 {
     _http    = new HttpContextLifecycle();
     _nonHttp = new ThreadLocalStorageLifecycle();
 }
 public IObjectCache FindCache()
 {
     return(HttpContextLifecycle.HasContext()
         ? _http.FindCache()
         : _nonHttp.FindCache());
 }
 public HybridHttpContextLifecycle()
 {
     _http = new HttpContextLifecycle();
     _nonHttp = new ThreadLocalStorageLifecycle();
 }