5 writes to _permitCount
System.Threading.RateLimiting (5)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (5)
75
_permitCount
= options.PermitLimit;
241
_permitCount
-= permitCount;
308
_permitCount
= _options.PermitLimit;
337
_permitCount
-= nextPendingRequest.Count;
343
_permitCount
+= nextPendingRequest.Count;
11 references to _permitCount
System.Threading.RateLimiting (11)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (11)
91
CurrentAvailablePermits =
_permitCount
,
113
if (
_permitCount
> 0)
147
if (permitCount == 0 &&
_permitCount
> 0)
214
int replenishAmount = permitCount -
_permitCount
+ _queueCount;
226
if (
_permitCount
>= permitCount &&
_permitCount
!= 0)
242
Debug.Assert(
_permitCount
>= 0);
300
int availablePermitCounters =
_permitCount
;
328
else if (
_permitCount
>= nextPendingRequest.Count)
338
Debug.Assert(
_permitCount
>= 0);
370
if (
_permitCount
== _options.PermitLimit)