3 writes to AutoReplenishment
Microsoft.AspNetCore.RateLimiting (1)
RateLimiterOptionsExtensions.cs (1)
93
slidingWindowRateLimiterOptions.
AutoReplenishment
= false;
System.Threading.RateLimiting (2)
System\Threading\RateLimiting\RateLimitPartition.cs (1)
115
AutoReplenishment
= false
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (1)
81
AutoReplenishment
= options.AutoReplenishment
10 references to AutoReplenishment
Microsoft.AspNetCore.RateLimiting (1)
RateLimiterOptionsExtensions.cs (1)
82
/// Setting <see cref="SlidingWindowRateLimiterOptions.
AutoReplenishment
"/> will have no effect here, as the <see cref="PartitionedRateLimiter"/> that this limiter is added to
System.Threading.RateLimiting (9)
System\Threading\RateLimiting\RateLimitPartition.cs (3)
92
/// Set <see cref="SlidingWindowRateLimiterOptions.
AutoReplenishment
"/> to <see langword="false"/> to save an allocation. This method will create a new options type and set <see cref="SlidingWindowRateLimiterOptions.
AutoReplenishment
"/> to <see langword="false"/> otherwise.
106
if (options.
AutoReplenishment
is true)
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (6)
42
public override bool IsAutoReplenishing => _options.
AutoReplenishment
;
81
AutoReplenishment = options.
AutoReplenishment
93
if (_options.
AutoReplenishment
)
261
/// False if <see cref="SlidingWindowRateLimiterOptions.
AutoReplenishment
"/> is enabled, otherwise true.
266
if (_options.
AutoReplenishment
)
299
if (RateLimiterHelper.GetElapsedTime(_lastReplenishmentTick, nowTicks) < ReplenishmentPeriod && !_options.
AutoReplenishment
)