More ConfigureAwait(false)

This commit is contained in:
Stephen Halter 2015-08-11 12:37:46 -07:00
parent 688ad9bee7
commit 0ac3c3dad6
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ namespace LargeResponseApp
for (int i = 0; i < numChunks; i++)
{
await context.Response.Body.WriteAsync(_chunk, 0, _chunkSize);
await context.Response.Body.WriteAsync(_chunk, 0, _chunkSize).ConfigureAwait(false);
}
});
}

View File

@ -29,7 +29,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
KestrelThread thread,
Func<Frame, Task> application)
{
await StartAsync(scheme, host, port, thread, application);
await StartAsync(scheme, host, port, thread, application).ConfigureAwait(false);
await Thread.PostAsync(_ =>
{
@ -37,7 +37,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
ListenPipe.Init(Thread.Loop, false);
ListenPipe.Bind(pipeName);
ListenPipe.Listen(Constants.ListenBacklog, OnListenPipe, null);
}, null);
}, null).ConfigureAwait(false);
}
private void OnListenPipe(UvStreamHandle pipe, int status, Exception error, object state)