public void EnableForRoutes(params string[] routes) { Enabled = false; ExcludedRoutes.Clear(); IncludedRoutes.Clear(); foreach (var route in routes) { IncludedRoutes.Add(route); } }
public void EnableForAllRoutesExcept(params string[] routes) { Enabled = true; IncludedRoutes.Clear(); ExcludedRoutes.Clear(); foreach (var route in routes) { ExcludedRoutes.Add(route); } }
public void EnableForAllRoutes() { IncludedRoutes.Clear(); ExcludedRoutes.Clear(); Enabled = true; }