5 writes to _tokenCount
System.Threading.RateLimiting (5)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (5)
83_tokenCount = options.TokenLimit; 249_tokenCount -= tokenCount; 318_tokenCount = Math.Min(_options.TokenLimit, _tokenCount + add); 352_tokenCount -= nextPendingRequest.Count; 358_tokenCount += nextPendingRequest.Count;
13 references to _tokenCount
System.Threading.RateLimiting (13)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (13)
100CurrentAvailablePermits = (long)_tokenCount, 119if (_tokenCount > 0) 153if (tokenCount == 0 && _tokenCount > 0) 220int replenishAmount = tokenCount - (int)_tokenCount + _queueCount; 234if (_tokenCount >= tokenCount && _tokenCount != 0) 250Debug.Assert(_tokenCount >= 0); 301if (_tokenCount == _options.TokenLimit) 318_tokenCount = Math.Min(_options.TokenLimit, _tokenCount + add); 325Debug.Assert(_tokenCount <= _options.TokenLimit); 343else if (_tokenCount >= nextPendingRequest.Count) 353Debug.Assert(_tokenCount >= 0); 385if (_tokenCount == _options.TokenLimit)