3 writes to Window
Microsoft.AspNetCore.RateLimiting.Tests (1)
RateLimitingMiddlewareTests.cs (1)
228
options.
Window
= TimeSpan.FromSeconds(10);
System.Threading.RateLimiting (2)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (1)
71
Window
= options.Window,
System\Threading\RateLimiting\RateLimitPartition.cs (1)
147
Window
= options.Window,
9 references to Window
System.Threading.RateLimiting (9)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (8)
41
public override TimeSpan ReplenishmentPeriod => _options.
Window
;
61
if (options.
Window
<= TimeSpan.Zero)
63
throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThanTimeSpan0, nameof(options.
Window
)), nameof(options));
71
Window = options.
Window
,
81
_renewTimer = new Timer(Replenish, this, _options.
Window
, _options.
Window
);
218
return new FixedWindowLease(false, TimeSpan.FromTicks(_options.
Window
.Ticks * replenishWindow));
293
if (RateLimiterHelper.GetElapsedTime(_lastReplenishmentTick, nowTicks) < _options.
Window
&& !_options.AutoReplenishment)
System\Threading\RateLimiting\RateLimitPartition.cs (1)
147
Window = options.
Window
,