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)
82
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)
43
public override bool IsAutoReplenishing => _options.
AutoReplenishment
;
82
AutoReplenishment = options.
AutoReplenishment
94
if (_options.
AutoReplenishment
)
262
/// False if <see cref="SlidingWindowRateLimiterOptions.
AutoReplenishment
"/> is enabled, otherwise true.
267
if (_options.
AutoReplenishment
)
300
if (((nowTicks - _lastReplenishmentTick) * TickFrequency) < ReplenishmentPeriod.Ticks && !_options.
AutoReplenishment
)