public async Task Invoke(HttpContext context)
 {
     await context.Response.WriteAsync($"{_greet.Greet()} {_name}, {_content.SayHello()} from {_city}");
 }
 public async Task Invoke(HttpContext context)
 {
     await context.Response.WriteAsync($"{_greet.Greet()}");
 }
Example #3
0
 public async Task Invoke(HttpContext context, Goodbye goodbye)
 {
     await context.Response.WriteAsync($"{_greet.Greet()} {goodbye.Say()}");
 }