RateLimitHttpClient is a HttpClient wrapper implementing SimpleRateLimiter.
using Oz.RateLimiting;
Let's get setup for 200 requests per hour.
var rateLimiter = new SimpleRateLimiter(200, TimeSpan.FromHours(1));
var httpClient = new RateLimitedHttpClient(rateLimiter);
Let's make some API calls to jsonplaceholder (a free, fake API for testing).
for (int i = 1; i <= 5000; i++) {
var response = await httpClient.GetAsync($"https://jsonplaceholder.typicode.com/photos/{i}");
}