public static ReflectedActionDescriptor CreateDescriptor(MethodInfo method, string name, ControllerDescriptor controller) { ReflectedActionDescriptor descriptor = new ReflectedActionDescriptor(method, name, controller, false); ValidateActionMethod(method); return descriptor; }
public override IEnumerable <ActionDescriptor> GetCanonicalActions() { return(_selector.Methods.Select(a => ReflectedActionDescriptor.CreateDescriptor(a, a.Name, this)).ToArray()); }