6 writes to _queueCount
System.Threading.RateLimiting (6)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (6)
177
_queueCount
-= oldestRequest.Count;
190
_queueCount
+= oldestRequest.Count;
211
_queueCount
+= tokenCount;
351
_queueCount
-= nextPendingRequest.Count;
368
_queueCount
+= nextPendingRequest.Count;
509
limiter.
_queueCount
-= registration.Count;
10 references to _queueCount
System.Threading.RateLimiting (10)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (10)
101
CurrentQueuedCount =
_queueCount
,
168
Debug.Assert(_options.QueueLimit >=
_queueCount
);
169
if (_options.QueueLimit -
_queueCount
< tokenCount)
178
Debug.Assert(
_queueCount
>= 0);
199
while (_options.QueueLimit -
_queueCount
< tokenCount);
212
Debug.Assert(
_queueCount
<= _options.QueueLimit);
220
int replenishAmount = tokenCount - (int)_tokenCount +
_queueCount
;
246
if (
_queueCount
== 0 || (
_queueCount
> 0 && _options.QueueProcessingOrder == QueueProcessingOrder.NewestFirst))
376
Debug.Assert(
_queueCount
>= 0);