6 writes to _queueCount
System.Threading.RateLimiting (6)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (6)
173
_queueCount
-= oldestRequest.Count;
186
_queueCount
+= oldestRequest.Count;
207
_queueCount
+= tokenCount;
347
_queueCount
-= nextPendingRequest.Count;
364
_queueCount
+= nextPendingRequest.Count;
505
limiter.
_queueCount
-= registration.Count;
10 references to _queueCount
System.Threading.RateLimiting (10)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (10)
97
CurrentQueuedCount =
_queueCount
,
164
Debug.Assert(_options.QueueLimit >=
_queueCount
);
165
if (_options.QueueLimit -
_queueCount
< tokenCount)
174
Debug.Assert(
_queueCount
>= 0);
195
while (_options.QueueLimit -
_queueCount
< tokenCount);
208
Debug.Assert(
_queueCount
<= _options.QueueLimit);
216
int replenishAmount = tokenCount - (int)_tokenCount +
_queueCount
;
242
if (
_queueCount
== 0 || (
_queueCount
> 0 && _options.QueueProcessingOrder == QueueProcessingOrder.NewestFirst))
372
Debug.Assert(
_queueCount
>= 0);