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);
225
return new
TokenBucketLease
(false, TimeSpan.FromTicks(_options.ReplenishmentPeriod.Ticks * replenishPeriods));
1 reference to TokenBucketLease
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (1)
217
private
TokenBucketLease
CreateFailedTokenLease(int tokenCount)