4 writes to PermitLimit
Microsoft.AspNetCore.RateLimiting.Tests (2)
RateLimitingMetricsTests.cs (2)
180
options.
PermitLimit
= 1;
255
options.
PermitLimit
= 1;
RateLimitingSample (1)
Program.cs (1)
41
PermitLimit
= 10,
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (1)
54
PermitLimit
= 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)
43
if (options.
PermitLimit
<= 0)
45
throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThan0, nameof(options.
PermitLimit
)), nameof(options));
54
PermitLimit = options.
PermitLimit
,
59
_permitCount = _options.
PermitLimit
;
79
if (permitCount > _options.
PermitLimit
)
81
throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.
PermitLimit
));
118
if (permitCount > _options.
PermitLimit
)
120
throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.
PermitLimit
));
240
Debug.Assert(_permitCount <= _options.
PermitLimit
);
311
if (_permitCount == _options.
PermitLimit
)