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)
57PermitLimit = 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)
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)