4 writes to AutoReplenishment
Microsoft.AspNetCore.RateLimiting (1)
RateLimiterOptionsExtensions.cs (1)
64fixedWindowRateLimiterOptions.AutoReplenishment = false;
Microsoft.AspNetCore.RateLimiting.Tests (1)
RateLimitingMiddlewareTests.cs (1)
229options.AutoReplenishment = false;
System.Threading.RateLimiting (2)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (1)
73AutoReplenishment = options.AutoReplenishment
System\Threading\RateLimiting\RateLimitPartition.cs (1)
148AutoReplenishment = false
10 references to AutoReplenishment
Microsoft.AspNetCore.RateLimiting (1)
RateLimiterOptionsExtensions.cs (1)
53/// Setting <see cref="FixedWindowRateLimiterOptions.AutoReplenishment"/> will have no effect here, as the <see cref="PartitionedRateLimiter"/> that this limiter is added to
System.Threading.RateLimiting (9)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (6)
39public override bool IsAutoReplenishing => _options.AutoReplenishment; 73AutoReplenishment = options.AutoReplenishment 80if (_options.AutoReplenishment) 258/// False if <see cref="FixedWindowRateLimiterOptions.AutoReplenishment"/> is enabled, otherwise true. 263if (_options.AutoReplenishment) 294if (((nowTicks - _lastReplenishmentTick) * TickFrequency) < _options.Window.Ticks && !_options.AutoReplenishment)
System\Threading\RateLimiting\RateLimitPartition.cs (3)
126/// Set <see cref="FixedWindowRateLimiterOptions.AutoReplenishment"/> to <see langword="false"/> to save an allocation. This method will create a new options type and set <see cref="FixedWindowRateLimiterOptions.AutoReplenishment"/> to <see langword="false"/> otherwise. 140if (options.AutoReplenishment is true)