Merge branch 'benaadams/sample-return-task' into dev
This commit is contained in:
commit
a2983f355c
|
|
@ -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");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue