Esempio n. 1
0
 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());
 }
Esempio n. 2
0
 public TestRequestBinder()
 {
     BindFunc = c => Task.FromResult(BindResult.Success());
 }