I've come across an annoying deadlock issue when using the library in an ASP.NET request context (this could apply to any UI context too). The issue is that the HttpClient method GetAsync is deadlocking.
To fix the issue I can to call ConfigureAwait(false) after the call to GetAsync, which stopped the deadlocking. According to Stephen Cleary, this is recommended anyway (see article above).
I've come across an annoying deadlock issue when using the library in an ASP.NET request context (this could apply to any UI context too). The issue is that the
HttpClient
methodGetAsync
is deadlocking.Ref. article: Don't Block on Async Code
To fix the issue I can to call
ConfigureAwait(false)
after the call to GetAsync, which stopped the deadlocking. According to Stephen Cleary, this is recommended anyway (see article above).