3 writes to Window
RateLimitingSample (1)
SampleRateLimiterPolicy.cs (1)
33
Window
= TimeSpan.FromSeconds(5),
System.Threading.RateLimiting (2)
System\Threading\RateLimiting\RateLimitPartition.cs (1)
113
Window
= options.Window,
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (1)
80
Window
= options.Window,
5 references to Window
System.Threading.RateLimiting (5)
System\Threading\RateLimiting\RateLimitPartition.cs (1)
113
Window = options.
Window
,
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (4)
70
if (options.
Window
<= TimeSpan.Zero)
72
throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThanTimeSpan0, nameof(options.
Window
)), nameof(options));
80
Window = options.
Window
,
86
_replenishmentPeriod = new TimeSpan(_options.
Window
.Ticks / _options.SegmentsPerWindow);