5 writes to _tokenCount
System.Threading.RateLimiting (5)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (5)
83
_tokenCount
= options.TokenLimit;
249
_tokenCount
-= tokenCount;
318
_tokenCount
= Math.Min(_options.TokenLimit, _tokenCount + add);
352
_tokenCount
-= nextPendingRequest.Count;
358
_tokenCount
+= nextPendingRequest.Count;
13 references to _tokenCount
System.Threading.RateLimiting (13)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (13)
100
CurrentAvailablePermits = (long)
_tokenCount
,
119
if (
_tokenCount
> 0)
153
if (tokenCount == 0 &&
_tokenCount
> 0)
220
int replenishAmount = tokenCount - (int)
_tokenCount
+ _queueCount;
234
if (
_tokenCount
>= tokenCount &&
_tokenCount
!= 0)
250
Debug.Assert(
_tokenCount
>= 0);
301
if (
_tokenCount
== _options.TokenLimit)
318
_tokenCount = Math.Min(_options.TokenLimit,
_tokenCount
+ add);
325
Debug.Assert(
_tokenCount
<= _options.TokenLimit);
343
else if (
_tokenCount
>= nextPendingRequest.Count)
353
Debug.Assert(
_tokenCount
>= 0);
385
if (
_tokenCount
== _options.TokenLimit)