Skip to content

Commit 04f10ef

Browse files
committed
Use ConfigureAwait in OpenApi.Client, because callers may be desktop apps
1 parent 01f131e commit 04f10ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/JsonApiDotNetCore.OpenApi.Client/ApiResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public static class ApiResponse
1515

1616
try
1717
{
18-
return await operation();
18+
return await operation().ConfigureAwait(false);
1919
}
2020
catch (ApiException exception) when (exception.StatusCode == 204)
2121
{
@@ -30,7 +30,7 @@ public static async Task TranslateAsync(Func<Task> operation)
3030

3131
try
3232
{
33-
await operation();
33+
await operation().ConfigureAwait(false);
3434
}
3535
catch (ApiException exception) when (exception.StatusCode == 204)
3636
{

0 commit comments

Comments
 (0)