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)
69PermitLimit = 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)
54if (options.PermitLimit <= 0) 56throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThan0, nameof(options.PermitLimit)), nameof(options)); 69PermitLimit = options.PermitLimit, 76_permitCount = options.PermitLimit; 104if (permitCount > _options.PermitLimit) 106throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.PermitLimit)); 140if (permitCount > _options.PermitLimit) 142throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.PermitLimit)); 217int replenishWindow = Math.Max(replenishAmount / _options.PermitLimit, 1); 303if (availablePermitCounters >= _options.PermitLimit) 309_permitCount = _options.PermitLimit; 371if (_permitCount == _options.PermitLimit)
System\Threading\RateLimiting\RateLimitPartition.cs (1)
144PermitLimit = options.PermitLimit,