5 writes to PermitLimit
Microsoft.AspNetCore.ConcurrencyLimiter (1)
Microsoft.AspNetCore.RateLimiting.Tests (2)
RateLimitingSample (1)
System.Threading.RateLimiting (1)
11 references to PermitLimit
Microsoft.Extensions.Http.Resilience.Tests (1)
System.Threading.RateLimiting (10)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (10)
46if (options.PermitLimit <= 0)
48throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThan0, nameof(options.PermitLimit)), nameof(options));
57PermitLimit = options.PermitLimit,
62_permitCount = _options.PermitLimit;
82if (permitCount > _options.PermitLimit)
84throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.PermitLimit));
121if (permitCount > _options.PermitLimit)
123throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.PermitLimit));
243Debug.Assert(_permitCount <= _options.PermitLimit);
314if (_permitCount == _options.PermitLimit)