3 writes to TokensPerPeriod
RateLimitingSample (1)
Program.cs (1)
32
options.
TokensPerPeriod
= 1;
System.Threading.RateLimiting (2)
System\Threading\RateLimiting\RateLimitPartition.cs (1)
80
TokensPerPeriod
= options.TokensPerPeriod,
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (1)
79
TokensPerPeriod
= options.TokensPerPeriod,
8 references to TokensPerPeriod
System.Threading.RateLimiting (8)
System\Threading\RateLimiting\RateLimitPartition.cs (1)
80
TokensPerPeriod = options.
TokensPerPeriod
,
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (7)
60
if (options.
TokensPerPeriod
<= 0)
62
throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThan0, nameof(options.
TokensPerPeriod
)), nameof(options));
79
TokensPerPeriod = options.
TokensPerPeriod
,
84
_fillRate = (double)options.
TokensPerPeriod
/ options.ReplenishmentPeriod.Ticks;
223
Debug.Assert(_options.
TokensPerPeriod
> 0);
224
int replenishPeriods = Math.Max(replenishAmount / _options.
TokensPerPeriod
, 1);
311
add = _options.
TokensPerPeriod
;