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)
79
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)
69
if (options.
Window
<= TimeSpan.Zero)
71
throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThanTimeSpan0, nameof(options.
Window
)), nameof(options));
79
Window = options.
Window
,
85
_replenishmentPeriod = new TimeSpan(_options.
Window
.Ticks / _options.SegmentsPerWindow);