public static IActionResult RunCustomBindingFunction( [HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = "custombinding/{name}")] HttpRequest req, string name, [MySimpleBinding(Location = "%filepath%\\{name}")] MySimpleModel simpleModel) { return((ActionResult) new OkObjectResult(simpleModel.Content)); }
public void ParameterHasEmptyBindAttribute([Bind] MySimpleModel parameter, [Bind] MySimpleModelWithTypeBasedBind parameter1) { }
public void ParameterHasPrefixAndComplexType( [Bind(Prefix = "simpleModelPrefix")] MySimpleModel parameter, [Bind(Prefix = "simpleModelPrefix")] MySimpleModelWithTypeBasedBind parameter1) { }
public void ParameterHasEmptyFieldPrefix([Bind(Prefix = "")] MySimpleModel parameter, [Bind(Prefix = "")] MySimpleModelWithTypeBasedBind parameter1) { }
public void ParameterHasPrefixAndComplexType([Bind(Prefix = "bar")] MySimpleModel foo, [Bind(Prefix = "bar")] MySimpleModelWithTypeBasedBind foo1) { }