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)
78
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)
59
if (options.
TokensPerPeriod
<= 0)
61
throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThan0, nameof(options.
TokensPerPeriod
)), nameof(options));
78
TokensPerPeriod = options.
TokensPerPeriod
,
83
_fillRate = (double)options.
TokensPerPeriod
/ options.ReplenishmentPeriod.Ticks;
222
Debug.Assert(_options.
TokensPerPeriod
> 0);
223
int replenishPeriods = Math.Max(replenishAmount / _options.
TokensPerPeriod
, 1);
310
add = _options.
TokensPerPeriod
;