3 writes to PermitLimit
Microsoft.AspNetCore.RateLimiting.Tests (1)
RateLimitingMiddlewareTests.cs (1)
225options.PermitLimit = 1;
System.Threading.RateLimiting (2)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (1)
68PermitLimit = options.PermitLimit,
System\Threading\RateLimiting\RateLimitPartition.cs (1)
144PermitLimit = options.PermitLimit,
13 references to PermitLimit
System.Threading.RateLimiting (13)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (12)
53if (options.PermitLimit <= 0) 55throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThan0, nameof(options.PermitLimit)), nameof(options)); 68PermitLimit = options.PermitLimit, 75_permitCount = options.PermitLimit; 103if (permitCount > _options.PermitLimit) 105throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.PermitLimit)); 139if (permitCount > _options.PermitLimit) 141throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.PermitLimit)); 216int replenishWindow = Math.Max(replenishAmount / _options.PermitLimit, 1); 302if (availablePermitCounters >= _options.PermitLimit) 308_permitCount = _options.PermitLimit; 370if (_permitCount == _options.PermitLimit)
System\Threading\RateLimiting\RateLimitPartition.cs (1)
144PermitLimit = options.PermitLimit,