2 writes to _currentSegmentIndex
System.Threading.RateLimiting (2)
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (2)
86_currentSegmentIndex = 0; 305_currentSegmentIndex = (_currentSegmentIndex + 1) % _options.SegmentsPerWindow;
6 references to _currentSegmentIndex
System.Threading.RateLimiting (6)
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (6)
241_requestsPerSegment[_currentSegmentIndex] += permitCount; 305_currentSegmentIndex = (_currentSegmentIndex + 1) % _options.SegmentsPerWindow; 306int oldSegmentPermitCount = _requestsPerSegment[_currentSegmentIndex]; 307_requestsPerSegment[_currentSegmentIndex] = 0; 346_requestsPerSegment[_currentSegmentIndex] += nextPendingRequest.Count; 353_requestsPerSegment[_currentSegmentIndex] -= nextPendingRequest.Count;