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

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

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