Fix sample perf (Option 1)

No need to await just return Task
This commit is contained in:
Ben Adams 2015-07-19 15:32:37 +01:00
parent 93477efb41
commit aedd548c3b
1 changed files with 3 additions and 3 deletions

View File

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