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; 509limiter._queueCount -= registration.Count;
10 references to _queueCount
System.Threading.RateLimiting (10)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (10)
101CurrentQueuedCount = _queueCount, 168Debug.Assert(_options.QueueLimit >= _queueCount); 169if (_options.QueueLimit - _queueCount < tokenCount) 178Debug.Assert(_queueCount >= 0); 199while (_options.QueueLimit - _queueCount < tokenCount); 212Debug.Assert(_queueCount <= _options.QueueLimit); 220int replenishAmount = tokenCount - (int)_tokenCount + _queueCount; 246if (_queueCount == 0 || (_queueCount > 0 && _options.QueueProcessingOrder == QueueProcessingOrder.NewestFirst)) 376Debug.Assert(_queueCount >= 0);