More ConfigureAwait(false)
This commit is contained in:
parent
688ad9bee7
commit
0ac3c3dad6
|
|
@ -30,7 +30,7 @@ namespace LargeResponseApp
|
||||||
|
|
||||||
for (int i = 0; i < numChunks; i++)
|
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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
|
||||||
KestrelThread thread,
|
KestrelThread thread,
|
||||||
Func<Frame, Task> application)
|
Func<Frame, Task> application)
|
||||||
{
|
{
|
||||||
await StartAsync(scheme, host, port, thread, application);
|
await StartAsync(scheme, host, port, thread, application).ConfigureAwait(false);
|
||||||
|
|
||||||
await Thread.PostAsync(_ =>
|
await Thread.PostAsync(_ =>
|
||||||
{
|
{
|
||||||
|
|
@ -37,7 +37,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http
|
||||||
ListenPipe.Init(Thread.Loop, false);
|
ListenPipe.Init(Thread.Loop, false);
|
||||||
ListenPipe.Bind(pipeName);
|
ListenPipe.Bind(pipeName);
|
||||||
ListenPipe.Listen(Constants.ListenBacklog, OnListenPipe, null);
|
ListenPipe.Listen(Constants.ListenBacklog, OnListenPipe, null);
|
||||||
}, null);
|
}, null).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnListenPipe(UvStreamHandle pipe, int status, Exception error, object state)
|
private void OnListenPipe(UvStreamHandle pipe, int status, Exception error, object state)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue