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);
        }