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