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