コード例 #1
0
 public void Configuration(IAppBuilder builder)
 {
     builder.UseHandler((request, response) => response.Write(_myService.GetFoo()));
 }
コード例 #2
0
 public void Configuration(IAppBuilder builder)
 {
     builder.Use((context, next) => context.Response.WriteAsync(_myService.GetFoo()));
 }