Commit Graph

7 Commits

Author SHA1 Message Date
Jonas Dellinger
3917fbefdc Code Cleanup and ImplictGrantAuth name fix, fixes #320 2019-03-18 21:24:09 +01:00
Jonas Dellinger
3c98a63873 Added error handling for invalid json errors, 500 gateway etc., fixes #303 2018-12-22 21:40:31 +01:00
Florian Jäckel
467984c6f8 Clear DefaultRequestHeaders when adding a new header dictionary (#302) 2018-10-27 13:56:30 +02:00
Florian Jäckel
9859e9d4ae Check if the header exists and replace it rather than add it again (#299) 2018-10-24 23:21:13 +02:00
Justin Swanson
67cb3e42f1 TooManyRequests Handling (#282)
* SpotifyHttpStatusCode

A small supplementary enum for Spotify specific codes.  Only contains TooManyRequests currently, but more can be added.

* TooManyRequests Retry Handling

Will now parse and wait the Spotify recommended wait time.  Also has the option to not consume a retry attempt on this type of error

* TryGetTooManyRequests refactored to GetTooManyRequests

To keep the library consistent

* Removed SpotifyHttpStatusCode
2018-09-21 14:42:52 +02:00
kg73
fa0f3e2d90 Modified SpotifyWebClient to use a single HttpClient per class lifeti… (#287)
* Modified SpotifyWebClient to use a single HttpClient per class lifetime. This will allow the HttpClient to properly pool connections.
Reference: https://docs.microsoft.com/en-us/aspnet/web-api/overview/advanced/calling-a-web-api-from-a-net-client

* Added suggested changes. Moved ProxyConfig to the constructor of SpotifyWebClient.
2018-09-17 14:44:22 +02:00
Jonas Dellinger
5c2a901f75 Updated to .NET Core and reimplemented auth strategies 2018-08-24 14:10:13 +02:00