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