3 references to TokenBucketLease
System.Threading.RateLimiting (3)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (3)
33
private static readonly RateLimitLease SuccessfulLease = new
TokenBucketLease
(true, null);
34
private static readonly RateLimitLease FailedLease = new
TokenBucketLease
(false, null);
226
return new
TokenBucketLease
(false, TimeSpan.FromTicks(_options.ReplenishmentPeriod.Ticks * replenishPeriods));