Ejemplo n.º 1
0
        public void InAllControllersFromAssembly(Assembly assembly)
        {
            var controllerTypes      = RouteMapRegistry.GetControllers(new[] { assembly });
            var actionsWithRouteMaps = RouteMapRegistry.GetActionsWithRouteMaps(controllerTypes);

            Actions.AddRange(actionsWithRouteMaps);
        }
Ejemplo n.º 2
0
        public void InControllers(IEnumerable <Type> controllerTypes)
        {
            var actionsWithRouteMaps = RouteMapRegistry.GetActionsWithRouteMaps(controllerTypes);

            Actions.AddRange(actionsWithRouteMaps);
        }
Ejemplo n.º 3
0
 protected virtual RouteValueDictionary ParseStringToConstraintsRouteValueDictionary(string valueString)
 {
     return(RouteMapRegistry.ParseStringToRouteValueDictionary(valueString));
 }