private static Task <BindResult> SetArguments(ActionMethod actionMethod, RequestBinderContext context, Action <object[], ParameterDescriptor> set) { actionMethod.MethodDescriptor.Parameters.ForEach(pi => set(context.ActionArguments, pi)); return(BindResult.Success().ToTaskResult()); }
public TestRequestBinder() { BindFunc = c => Task.FromResult(BindResult.Success()); }