3 writes to PermitLimit
Microsoft.AspNetCore.RateLimiting.Tests (1)
RateLimitingMiddlewareTests.cs (1)
225
options.
PermitLimit
= 1;
System.Threading.RateLimiting (2)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (1)
69
PermitLimit
= options.PermitLimit,
System\Threading\RateLimiting\RateLimitPartition.cs (1)
144
PermitLimit
= options.PermitLimit,
13 references to PermitLimit
System.Threading.RateLimiting (13)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (12)
54
if (options.
PermitLimit
<= 0)
56
throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThan0, nameof(options.
PermitLimit
)), nameof(options));
69
PermitLimit = options.
PermitLimit
,
76
_permitCount = options.
PermitLimit
;
104
if (permitCount > _options.
PermitLimit
)
106
throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.
PermitLimit
));
140
if (permitCount > _options.
PermitLimit
)
142
throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.
PermitLimit
));
217
int replenishWindow = Math.Max(replenishAmount / _options.
PermitLimit
, 1);
303
if (availablePermitCounters >= _options.
PermitLimit
)
309
_permitCount = _options.
PermitLimit
;
371
if (_permitCount == _options.
PermitLimit
)
System\Threading\RateLimiting\RateLimitPartition.cs (1)
144
PermitLimit = options.
PermitLimit
,