5 writes to _tokenCount
System.Threading.RateLimiting (5)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (5)
79
_tokenCount
= options.TokenLimit;
245
_tokenCount
-= tokenCount;
314
_tokenCount
= Math.Min(_options.TokenLimit, _tokenCount + add);
348
_tokenCount
-= nextPendingRequest.Count;
354
_tokenCount
+= nextPendingRequest.Count;
13 references to _tokenCount
System.Threading.RateLimiting (13)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (13)
96
CurrentAvailablePermits = (long)
_tokenCount
,
115
if (
_tokenCount
> 0)
149
if (tokenCount == 0 &&
_tokenCount
> 0)
216
int replenishAmount = tokenCount - (int)
_tokenCount
+ _queueCount;
230
if (
_tokenCount
>= tokenCount &&
_tokenCount
!= 0)
246
Debug.Assert(
_tokenCount
>= 0);
297
if (
_tokenCount
== _options.TokenLimit)
314
_tokenCount = Math.Min(_options.TokenLimit,
_tokenCount
+ add);
321
Debug.Assert(
_tokenCount
<= _options.TokenLimit);
339
else if (
_tokenCount
>= nextPendingRequest.Count)
349
Debug.Assert(
_tokenCount
>= 0);
381
if (
_tokenCount
== _options.TokenLimit)