6 writes to _queueCount
System.Threading.RateLimiting (6)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (6)
168
_queueCount
-= oldestRequest.Count;
181
_queueCount
+= oldestRequest.Count;
202
_queueCount
+= permitCount;
333
_queueCount
-= nextPendingRequest.Count;
350
_queueCount
+= nextPendingRequest.Count;
491
limiter.
_queueCount
-= registration.Count;
10 references to _queueCount
System.Threading.RateLimiting (10)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (10)
89
CurrentQueuedCount =
_queueCount
,
159
Debug.Assert(_options.QueueLimit >=
_queueCount
);
160
if (_options.QueueLimit -
_queueCount
< permitCount)
169
Debug.Assert(
_queueCount
>= 0);
190
while (_options.QueueLimit -
_queueCount
< permitCount);
203
Debug.Assert(
_queueCount
<= _options.QueueLimit);
211
int replenishAmount = permitCount - _permitCount +
_queueCount
;
235
if (
_queueCount
== 0 || (
_queueCount
> 0 && _options.QueueProcessingOrder == QueueProcessingOrder.NewestFirst))
358
Debug.Assert(
_queueCount
>= 0);