Ensure that awaits do not continue on the captured context. (#370)

* Ensure that awaits do not continue on the captured context.

* Make functions async for maintainability.

* Add documentation detailing the use of UIFact.
This commit is contained in:
Andy Kernahan
2020-03-19 04:54:44 +00:00
committed by GitHub
parent af741302de
commit 3e6815ad4c
8 changed files with 32 additions and 25 deletions

View File

@@ -273,7 +273,7 @@ namespace k8s
{
// Copy the default (credential-related) request headers from the HttpClient to the WebSocket
HttpRequestMessage message = new HttpRequestMessage();
await this.Credentials.ProcessHttpRequestAsync(message, cancellationToken);
await this.Credentials.ProcessHttpRequestAsync(message, cancellationToken).ConfigureAwait(false);
foreach (var _header in message.Headers)
{