public static void IgnoreRoute(this RouteCollection routes, string url)
        {
            Precondition.Require(routes, () => Error.ArgumentNull("routes"));
            Precondition.Require(url, () => Error.ArgumentNull("url"));

            IgnoredRoute route = new IgnoredRoute(url);
            routes.Add(route);
        }
Example #2
0
        public static void IgnoreRoute(this RouteCollection routes, string url)
        {
            Precondition.Require(routes, () => Error.ArgumentNull("routes"));
            Precondition.Require(url, () => Error.ArgumentNull("url"));

            IgnoredRoute route = new IgnoredRoute(url);

            routes.Add(route);
        }
        public static void IgnoreRoute(this RouteCollection routes, string url,
            params IRouteConstraint[] constraints)
        {
            Precondition.Require(routes, () => Error.ArgumentNull("routes"));
            Precondition.Require(constraints, () => Error.ArgumentNull("constraints"));
            Precondition.Require(url, () => Error.ArgumentNull("url"));

            IgnoredRoute route = new IgnoredRoute(url);

			for (int i = 0; i < constraints.Length; ++i)
				route.Constraints.Add(constraints[i]);

            routes.Add(route);
        }
Example #4
0
        public static void IgnoreRoute(this RouteCollection routes, string url,
                                       params IRouteConstraint[] constraints)
        {
            Precondition.Require(routes, () => Error.ArgumentNull("routes"));
            Precondition.Require(constraints, () => Error.ArgumentNull("constraints"));
            Precondition.Require(url, () => Error.ArgumentNull("url"));

            IgnoredRoute route = new IgnoredRoute(url);

            for (int i = 0; i < constraints.Length; ++i)
            {
                route.Constraints.Add(constraints[i]);
            }

            routes.Add(route);
        }