6 writes to _queueCount
System.Threading.RateLimiting (6)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (6)
176
_queueCount
-= oldestRequest.Count;
189
_queueCount
+= oldestRequest.Count;
210
_queueCount
+= tokenCount;
350
_queueCount
-= nextPendingRequest.Count;
367
_queueCount
+= nextPendingRequest.Count;
508
limiter.
_queueCount
-= registration.Count;
10 references to _queueCount
System.Threading.RateLimiting (10)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (10)
100
CurrentQueuedCount =
_queueCount
,
167
Debug.Assert(_options.QueueLimit >=
_queueCount
);
168
if (_options.QueueLimit -
_queueCount
< tokenCount)
177
Debug.Assert(
_queueCount
>= 0);
198
while (_options.QueueLimit -
_queueCount
< tokenCount);
211
Debug.Assert(
_queueCount
<= _options.QueueLimit);
219
int replenishAmount = tokenCount - (int)_tokenCount +
_queueCount
;
245
if (
_queueCount
== 0 || (
_queueCount
> 0 && _options.QueueProcessingOrder == QueueProcessingOrder.NewestFirst))
375
Debug.Assert(
_queueCount
>= 0);