public static ReflectedActionDescriptor CreateDescriptor(MethodInfo method,
			string name, ControllerDescriptor controller)
		{
			ReflectedActionDescriptor descriptor = new ReflectedActionDescriptor(method, name, controller, false);
			ValidateActionMethod(method);

			return descriptor;
		}
Ejemplo n.º 2
0
 public override IEnumerable <ActionDescriptor> GetCanonicalActions()
 {
     return(_selector.Methods.Select(a => ReflectedActionDescriptor.CreateDescriptor(a, a.Name, this)).ToArray());
 }