ezet / evelib

Eve Online Library.NET is an open source C# wrapper for CCPs Eve Online API and other popular Eve Online APIs.
Apache License 2.0
72 stars 36 forks source link

Use HttpClient and RateLimiter to force consumers to respect the api rate limits #110

Open chinwobble opened 7 years ago

chinwobble commented 7 years ago

System.NET.HTTP.HttpClient provides a higher level abstraction on web requests that allows you to more easily inject custom logic such as rate limiting, and default headers in the request pipeline.

See below for an example of its usage. https://raw.githubusercontent.com/chinwobble/CommonServices/master/src/WebAccessService/Common/RateLimitHandler.cs