public ReflectedAsyncControllerDescriptor(Type controllerType) { if (controllerType == null) { throw new ArgumentNullException("controllerType"); } _controllerType = controllerType; _selector = new AsyncActionMethodSelector(_controllerType); }
public ReflectedAsyncControllerDescriptor(Type controllerType) { if (controllerType == null) { throw new ArgumentNullException("controllerType"); } _controllerType = controllerType; _selector = new AsyncActionMethodSelector(_controllerType); }
private static ActionDescriptor CreateActionDescriptor(ControllerDescriptor controller, AsyncActionMethodSelector actionSelector, MethodInfo method) { string actionName = actionSelector.GetActionName(method); ActionDescriptorCreator creator = actionSelector.GetActionDescriptorDelegate(method); Debug.Assert(creator != null); return creator(actionName, controller); }