5 writes to PermitLimit
Microsoft.AspNetCore.ConcurrencyLimiter (1)
QueuePolicies\BasePolicy.cs (1)
37PermitLimit = maxConcurrentRequests,
Microsoft.AspNetCore.RateLimiting.Tests (2)
RateLimitingMetricsTests.cs (2)
180options.PermitLimit = 1; 255options.PermitLimit = 1;
RateLimitingSample (1)
Program.cs (1)
41PermitLimit = 10,
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (1)
59PermitLimit = options.PermitLimit,
11 references to PermitLimit
Microsoft.Extensions.Http.Resilience.Tests (1)
Polly\HttpRateLimiterStrategyOptionsTests.cs (1)
27_testObject.DefaultRateLimiterOptions.PermitLimit.Should().Be(1000);
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)