5 writes to _permitCount
System.Threading.RateLimiting (5)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (5)
76
_permitCount
= options.PermitLimit;
242
_permitCount
-= permitCount;
309
_permitCount
= _options.PermitLimit;
338
_permitCount
-= nextPendingRequest.Count;
344
_permitCount
+= nextPendingRequest.Count;
11 references to _permitCount
System.Threading.RateLimiting (11)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (11)
92
CurrentAvailablePermits =
_permitCount
,
114
if (
_permitCount
> 0)
148
if (permitCount == 0 &&
_permitCount
> 0)
215
int replenishAmount = permitCount -
_permitCount
+ _queueCount;
227
if (
_permitCount
>= permitCount &&
_permitCount
!= 0)
243
Debug.Assert(
_permitCount
>= 0);
301
int availablePermitCounters =
_permitCount
;
329
else if (
_permitCount
>= nextPendingRequest.Count)
339
Debug.Assert(
_permitCount
>= 0);
371
if (
_permitCount
== _options.PermitLimit)