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)
68
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)
53
if (options.
PermitLimit
<= 0)
55
throw new ArgumentException(SR.Format(SR.ShouldBeGreaterThan0, nameof(options.
PermitLimit
)), nameof(options));
68
PermitLimit = options.
PermitLimit
,
75
_permitCount = options.
PermitLimit
;
103
if (permitCount > _options.
PermitLimit
)
105
throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.
PermitLimit
));
139
if (permitCount > _options.
PermitLimit
)
141
throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.
PermitLimit
));
216
int replenishWindow = Math.Max(replenishAmount / _options.
PermitLimit
, 1);
302
if (availablePermitCounters >= _options.
PermitLimit
)
308
_permitCount = _options.
PermitLimit
;
370
if (_permitCount == _options.
PermitLimit
)
System\Threading\RateLimiting\RateLimitPartition.cs (1)
144
PermitLimit = options.
PermitLimit
,