Beispiel #1
0
        public ActionResult About()
        {
            recyler.TryRecycleCurrent();
            ViewBag.Message = "Your application description page.";

            return(View());
        }
 /// <summary>
 /// This will only be used if the Reader implementation supports change notification. not implemented in this, but if you change the cache by overriding this remember to hook up this.
 /// </summary>
 /// <param name="onCacheChanged"></param>
 public virtual void SetCacheInvalidatedHandler(Action <ConfigurationSet> onCacheChanged)
 {
     if (recycler != null)
     {
         changeHandler = c =>
         {
             if (onCacheChanged != null)
             {
                 onCacheChanged(c);
             }
             recycler.TryRecycleCurrent();
         }
     }
     ;
     else
     {
         changeHandler = onCacheChanged;
     }
 }