5 writes to _tokenCount
System.Threading.RateLimiting (5)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (5)
82_tokenCount = options.TokenLimit; 248_tokenCount -= tokenCount; 317_tokenCount = Math.Min(_options.TokenLimit, _tokenCount + add); 351_tokenCount -= nextPendingRequest.Count; 357_tokenCount += nextPendingRequest.Count;
13 references to _tokenCount
System.Threading.RateLimiting (13)
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (13)
99CurrentAvailablePermits = (long)_tokenCount, 118if (_tokenCount > 0) 152if (tokenCount == 0 && _tokenCount > 0) 219int replenishAmount = tokenCount - (int)_tokenCount + _queueCount; 233if (_tokenCount >= tokenCount && _tokenCount != 0) 249Debug.Assert(_tokenCount >= 0); 300if (_tokenCount == _options.TokenLimit) 317_tokenCount = Math.Min(_options.TokenLimit, _tokenCount + add); 324Debug.Assert(_tokenCount <= _options.TokenLimit); 342else if (_tokenCount >= nextPendingRequest.Count) 352Debug.Assert(_tokenCount >= 0); 384if (_tokenCount == _options.TokenLimit)