3 writes to ReplenishmentPeriod
RateLimitingSample (1)
Program.cs (1)
31options.ReplenishmentPeriod = TimeSpan.FromSeconds(10);
System.Threading.RateLimiting (2)
System\Threading\RateLimiting\RateLimitPartition.cs (1)
79ReplenishmentPeriod = options.ReplenishmentPeriod,
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (1)
77ReplenishmentPeriod = options.ReplenishmentPeriod,
9 references to ReplenishmentPeriod
System.Threading.RateLimiting (9)
System\Threading\RateLimiting\RateLimitPartition.cs (1)
79ReplenishmentPeriod = options.ReplenishmentPeriod,
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (8)
43public override TimeSpan ReplenishmentPeriod => _options.ReplenishmentPeriod; 67if (options.ReplenishmentPeriod <= TimeSpan.Zero) 69throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThanTimeSpan0, nameof(options.ReplenishmentPeriod)), nameof(options)); 77ReplenishmentPeriod = options.ReplenishmentPeriod, 83_fillRate = (double)options.TokensPerPeriod / options.ReplenishmentPeriod.Ticks; 89_renewTimer = new Timer(Replenish, this, _options.ReplenishmentPeriod, _options.ReplenishmentPeriod); 225return new TokenBucketLease(false, TimeSpan.FromTicks(_options.ReplenishmentPeriod.Ticks * replenishPeriods));