3 writes to AutoReplenishment
Microsoft.AspNetCore.RateLimiting (1)
RateLimiterOptionsExtensions.cs (1)
64
fixedWindowRateLimiterOptions.
AutoReplenishment
= false;
System.Threading.RateLimiting (2)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (1)
76
AutoReplenishment
= options.AutoReplenishment
System\Threading\RateLimiting\RateLimitPartition.cs (1)
148
AutoReplenishment
= 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)
45
public override bool IsAutoReplenishing => _options.
AutoReplenishment
;
76
AutoReplenishment = options.
AutoReplenishment
83
if (_options.
AutoReplenishment
)
268
/// False if <see cref="FixedWindowRateLimiterOptions.
AutoReplenishment
"/> is enabled, otherwise true.
273
if (_options.
AutoReplenishment
)
304
if (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.
140
if (options.
AutoReplenishment
)