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)
48if (options.PermitLimit <= 0)
50throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThan0, nameof(options.PermitLimit)), nameof(options));
59PermitLimit = options.PermitLimit,
64_permitCount = _options.PermitLimit;
84if (permitCount > _options.PermitLimit)
86throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.PermitLimit));
123if (permitCount > _options.PermitLimit)
125throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.PermitLimit));
245Debug.Assert(_permitCount <= _options.PermitLimit);
316if (_permitCount == _options.PermitLimit)