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;
309
int oldSegmentPermitCount = _requestsPerSegment[
_currentSegmentIndex
];
310
_requestsPerSegment[
_currentSegmentIndex
] = 0;
349
_requestsPerSegment[
_currentSegmentIndex
] += nextPendingRequest.Count;
356
_requestsPerSegment[
_currentSegmentIndex
] -= nextPendingRequest.Count;