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));
 }
示例#2
0
 public void ParameterHasEmptyBindAttribute([Bind] MySimpleModel parameter,
                                            [Bind] MySimpleModelWithTypeBasedBind parameter1)
 {
 }
示例#3
0
 public void ParameterHasPrefixAndComplexType(
     [Bind(Prefix = "simpleModelPrefix")] MySimpleModel parameter,
     [Bind(Prefix = "simpleModelPrefix")] MySimpleModelWithTypeBasedBind parameter1)
 {
 }
示例#4
0
 public void ParameterHasEmptyFieldPrefix([Bind(Prefix = "")] MySimpleModel parameter,
                                          [Bind(Prefix = "")] MySimpleModelWithTypeBasedBind parameter1)
 {
 }
 public void ParameterHasPrefixAndComplexType([Bind(Prefix = "bar")] MySimpleModel foo,
                                              [Bind(Prefix = "bar")] MySimpleModelWithTypeBasedBind foo1)
 {
 }