Skip to content
This repository was archived by the owner on Jul 9, 2024. It is now read-only.

Commit 58127f9

Browse files
committed
chore: adds missing configure await
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
1 parent e698ffe commit 58127f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HttpClientRequestAdapter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ private async Task ThrowIfFailedResponse(HttpResponseMessage response, Dictionar
444444
return null;// ensure a useful stream is passed to the factory
445445
#pragma warning disable CS0618 // Type or member is obsolete
446446
//TODO remove with v2
447-
var rootNode = pNodeFactory is IAsyncParseNodeFactory asyncParseNodeFactory ? await asyncParseNodeFactory.GetRootParseNodeAsync(responseContentType!, contentStream, cancellationToken) : pNodeFactory.GetRootParseNode(responseContentType!, contentStream);
447+
var rootNode = pNodeFactory is IAsyncParseNodeFactory asyncParseNodeFactory ? await asyncParseNodeFactory.GetRootParseNodeAsync(responseContentType!, contentStream, cancellationToken).ConfigureAwait(false) : pNodeFactory.GetRootParseNode(responseContentType!, contentStream);
448448
#pragma warning restore CS0618 // Type or member is obsolete
449449
return rootNode;
450450
}

0 commit comments

Comments
 (0)