Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1. using System.Configuration;
  2. using System.Web;
  3. using AlertSense.Common.Extensions;
  4.  
  5. namespace AlertSense.Hickory.AdminWebsite
  6. {
  7.     public class FeatureConfigToggle
  8.     {
  9.         public static bool UseFancyTree
  10.         {
  11.             get
  12.             {
  13.                 if (HttpContext.Current != null && HttpContext.Current.Request["UseFancy"] != null)
  14.                 {
  15.                     return HttpContext.Current.Request.Params.GetValue<bool>("UseFancy", true);
  16.                 }
  17.                 return ConfigurationManager.AppSettings.GetValue<bool>("UseFancy", false);
  18.             }
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement