コード例 #1
0
 public TerminalMiddleware(RequestDelegate next, Greeting greet)
 {
     _greet = greet;
 }
コード例 #2
0
 object Greet([FromBody] Greeting greet, HttpContext context)
 => new { Message = context.Request.Method + ":" + greet.Message };
コード例 #3
0
 JsonResult Greet([FromBody] Greeting greet) => new JsonResult(new { greet.Message });
コード例 #4
0
 public ActionResult <Greeting> Relay(Greeting greet)
 {
     return(greet);
 }