Merge branch 'benaadams/sample-return-task' into dev

This commit is contained in:
Stephen Halter 2015-08-11 12:47:11 -07:00
commit a2983f355c
1 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ namespace SampleApp
{ {
public void Configure(IApplicationBuilder app) public void Configure(IApplicationBuilder app)
{ {
app.Run(async context => app.Run(context =>
{ {
Console.WriteLine("{0} {1}{2}{3}", Console.WriteLine("{0} {1}{2}{3}",
context.Request.Method, context.Request.Method,
@ -21,7 +21,7 @@ namespace SampleApp
context.Response.ContentLength = 11; context.Response.ContentLength = 11;
context.Response.ContentType = "text/plain"; context.Response.ContentType = "text/plain";
await context.Response.WriteAsync("Hello world"); return context.Response.WriteAsync("Hello world");
}); });
} }
} }