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; 508limiter._queueCount -= registration.Count;
10 references to _queueCount
System.Threading.RateLimiting (10)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (10)
100CurrentQueuedCount = _queueCount, 167Debug.Assert(_options.QueueLimit >= _queueCount); 168if (_options.QueueLimit - _queueCount < tokenCount) 177Debug.Assert(_queueCount >= 0); 198while (_options.QueueLimit - _queueCount < tokenCount); 211Debug.Assert(_queueCount <= _options.QueueLimit); 219int replenishAmount = tokenCount - (int)_tokenCount + _queueCount; 245if (_queueCount == 0 || (_queueCount > 0 && _options.QueueProcessingOrder == QueueProcessingOrder.NewestFirst)) 375Debug.Assert(_queueCount >= 0);