5 writes to _tokenCount
System.Threading.RateLimiting (5)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (5)
79_tokenCount = options.TokenLimit; 245_tokenCount -= tokenCount; 314_tokenCount = Math.Min(_options.TokenLimit, _tokenCount + add); 348_tokenCount -= nextPendingRequest.Count; 354_tokenCount += nextPendingRequest.Count;
13 references to _tokenCount
System.Threading.RateLimiting (13)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (13)
96CurrentAvailablePermits = (long)_tokenCount, 115if (_tokenCount > 0) 149if (tokenCount == 0 && _tokenCount > 0) 216int replenishAmount = tokenCount - (int)_tokenCount + _queueCount; 230if (_tokenCount >= tokenCount && _tokenCount != 0) 246Debug.Assert(_tokenCount >= 0); 297if (_tokenCount == _options.TokenLimit) 314_tokenCount = Math.Min(_options.TokenLimit, _tokenCount + add); 321Debug.Assert(_tokenCount <= _options.TokenLimit); 339else if (_tokenCount >= nextPendingRequest.Count) 349Debug.Assert(_tokenCount >= 0); 381if (_tokenCount == _options.TokenLimit)