1 instantiation of SlidingWindowRateLimiter
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\RateLimitPartition.cs (1)
118return new SlidingWindowRateLimiter(options);
17 references to SlidingWindowRateLimiter
Microsoft.AspNetCore.RateLimiting (1)
RateLimiterOptionsExtensions.cs (1)
73/// Registers a new <see cref="SlidingWindowRateLimiter"/> with the given <see cref="SlidingWindowRateLimiterOptions"/> to the application.
System.Threading.RateLimiting (16)
System\Threading\RateLimiting\RateLimitPartition.cs (1)
89/// Defines a partition with a <see cref="SlidingWindowRateLimiter"/> with the given <see cref="SlidingWindowRateLimiterOptions"/>.
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (8)
49/// Initializes the <see cref="SlidingWindowRateLimiter"/>. 51/// <param name="options">Options to specify the behavior of the <see cref="SlidingWindowRateLimiter"/>.</param> 279SlidingWindowRateLimiter limiter = (state as SlidingWindowRateLimiter)!; 432throw new ObjectDisposedException(nameof(SlidingWindowRateLimiter)); 476public RequestRegistration(int permitCount, SlidingWindowRateLimiter limiter, CancellationToken cancellationToken) 500var limiter = (SlidingWindowRateLimiter)registration.Task.AsyncState!;
System\Threading\RateLimiting\SlidingWindowRateLimiterOptions.cs (7)
7/// Options to specify the behavior of a <see cref="SlidingWindowRateLimiter"/>. 13/// Must be set to a value greater than <see cref="TimeSpan.Zero" /> by the time these options are passed to the constructor of <see cref="SlidingWindowRateLimiter"/>. 19/// Must be set to a value > 0 by the time these options are passed to the constructor of <see cref="SlidingWindowRateLimiter"/>. 24/// Specified whether the <see cref="SlidingWindowRateLimiter"/> is automatically replenishing request counters or if someone else 25/// will be calling <see cref="SlidingWindowRateLimiter.TryReplenish"/> to replenish tokens. 34/// Must be set to a value > 0 by the time these options are passed to the constructor of <see cref="SlidingWindowRateLimiter"/>. 48/// Must be set to a value >= 0 by the time these options are passed to the constructor of <see cref="SlidingWindowRateLimiter"/>.