From 0ac3c3dad614940855b007425b49acba5a1b4458 Mon Sep 17 00:00:00 2001 From: Stephen Halter Date: Tue, 11 Aug 2015 12:37:46 -0700 Subject: [PATCH] More ConfigureAwait(false) --- samples/LargeResponseApp/Startup.cs | 2 +- src/Microsoft.AspNet.Server.Kestrel/Http/ListenerPrimary.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/LargeResponseApp/Startup.cs b/samples/LargeResponseApp/Startup.cs index 407b1fdd49..6bae65f890 100644 --- a/samples/LargeResponseApp/Startup.cs +++ b/samples/LargeResponseApp/Startup.cs @@ -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); } }); } diff --git a/src/Microsoft.AspNet.Server.Kestrel/Http/ListenerPrimary.cs b/src/Microsoft.AspNet.Server.Kestrel/Http/ListenerPrimary.cs index ac2bdebe5c..f1299c073b 100644 --- a/src/Microsoft.AspNet.Server.Kestrel/Http/ListenerPrimary.cs +++ b/src/Microsoft.AspNet.Server.Kestrel/Http/ListenerPrimary.cs @@ -29,7 +29,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Http KestrelThread thread, Func 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)