Beispiel #1
0
        public void EnableForRoutes(params string[] routes)
        {
            Enabled = false;
            ExcludedRoutes.Clear();

            IncludedRoutes.Clear();
            foreach (var route in routes)
            {
                IncludedRoutes.Add(route);
            }
        }
Beispiel #2
0
        public void EnableForAllRoutesExcept(params string[] routes)
        {
            Enabled = true;
            IncludedRoutes.Clear();

            ExcludedRoutes.Clear();
            foreach (var route in routes)
            {
                ExcludedRoutes.Add(route);
            }
        }
Beispiel #3
0
 public void EnableForAllRoutes()
 {
     IncludedRoutes.Clear();
     ExcludedRoutes.Clear();
     Enabled = true;
 }