protected override ControllerDescriptor GetControllerDescriptor(ControllerContext controllerContext) { var actionType = action.GetType(); var descriptor = new ControllerlessDescriptor(actionType, action, locator.GetInstance <IActionMethodSelector>()); return(descriptor); }
public ControllerlessActionDescriptor(ControllerlessDescriptor parent, MethodInfo method) { this.parent = parent; this.method = method; parameterDescriptors = method.GetParameters() .Select(x => new ReflectedParameterDescriptor(x, this)).ToArray(); }
public bool AppliesTo(ControllerlessDescriptor descriptor) { return(predicate(descriptor)); }