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)
72AutoReplenishment = 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)
38public override bool IsAutoReplenishing => _options.AutoReplenishment; 72AutoReplenishment = options.AutoReplenishment 79if (_options.AutoReplenishment) 257/// False if <see cref="FixedWindowRateLimiterOptions.AutoReplenishment"/> is enabled, otherwise true. 262if (_options.AutoReplenishment) 293if (RateLimiterHelper.GetElapsedTime(_lastReplenishmentTick, nowTicks) < _options.Window && !_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)