3 instantiations of 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));
1 reference to TokenBucketLease
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (1)
218
private
TokenBucketLease
CreateFailedTokenLease(int tokenCount)