2 writes to _currentSegmentIndex
System.Threading.RateLimiting (2)
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (2)
89_currentSegmentIndex = 0; 308_currentSegmentIndex = (_currentSegmentIndex + 1) % _options.SegmentsPerWindow;
6 references to _currentSegmentIndex
System.Threading.RateLimiting (6)
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (6)
244_requestsPerSegment[_currentSegmentIndex] += permitCount; 308_currentSegmentIndex = (_currentSegmentIndex + 1) % _options.SegmentsPerWindow; 309int oldSegmentPermitCount = _requestsPerSegment[_currentSegmentIndex]; 310_requestsPerSegment[_currentSegmentIndex] = 0; 349_requestsPerSegment[_currentSegmentIndex] += nextPendingRequest.Count; 356_requestsPerSegment[_currentSegmentIndex] -= nextPendingRequest.Count;