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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user