akamsteeg / AtleX.HaveIBeenPwned

A fully async .NET Standard client library for the API of HaveIBeenPwned.com
https://www.nuget.org/packages/AtleX.HaveIBeenPwned/
MIT License
5 stars 0 forks source link

Change RetryAfter property of RateLimitException from int to TimeSpan #24

Closed akamsteeg closed 5 years ago

akamsteeg commented 5 years ago

In RateLimitExceededException, the time to wait is expressed as an int with the number of seconds, while a TimeSpan would be a better fit and also allow for not an exact amount of seconds.