2 writes to _currentSegmentIndex
System.Threading.RateLimiting (2)
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (2)
90_currentSegmentIndex = 0; 309_currentSegmentIndex = (_currentSegmentIndex + 1) % _options.SegmentsPerWindow;
6 references to _currentSegmentIndex
System.Threading.RateLimiting (6)
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (6)
245_requestsPerSegment[_currentSegmentIndex] += permitCount; 309_currentSegmentIndex = (_currentSegmentIndex + 1) % _options.SegmentsPerWindow; 310int oldSegmentPermitCount = _requestsPerSegment[_currentSegmentIndex]; 311_requestsPerSegment[_currentSegmentIndex] = 0; 350_requestsPerSegment[_currentSegmentIndex] += nextPendingRequest.Count; 357_requestsPerSegment[_currentSegmentIndex] -= nextPendingRequest.Count;