Example #1
0
 public static RateLimiter UseDefaultQueue(this RateLimiter rateLimiter)
 {
     rateLimiter.UseQueue(new RateLimiterQueue());
     return(rateLimiter);
 }
Example #2
0
 public static RateLimiter UseRedisQueue(this RateLimiter rateLimiter, IDatabase database, string queueName)
 {
     rateLimiter.UseQueue(new RedisRateLimiterQueue(database, queueName));
     return(rateLimiter);
 }