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

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

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