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;
306
int oldSegmentPermitCount = _requestsPerSegment[
_currentSegmentIndex
];
307
_requestsPerSegment[
_currentSegmentIndex
] = 0;
346
_requestsPerSegment[
_currentSegmentIndex
] += nextPendingRequest.Count;
353
_requestsPerSegment[
_currentSegmentIndex
] -= nextPendingRequest.Count;