orionstudt / DuoSecurity.Auth.Http

A .NET HttpClient wrapper for interacting with the Duo Security Auth REST API.
https://duo.com/docs/authapi
GNU Lesser General Public License v3.0
10 stars 6 forks source link

deadlock in an UI application #1

Closed Daemon6666 closed 5 years ago

Daemon6666 commented 5 years ago

ConfigureAwait(false) would be enough to solve the problem

orionstudt commented 5 years ago

Hi! You're right, that's an oversight. I will get that resolved when I have a moment.

orionstudt commented 5 years ago

Hey @Daemon6666, 1.0.1-beta should now have ConfigureAwait(false) on all async calls and I also added CancellationToken support. Hope that works for you!