6 writes to _queueCount
System.Threading.RateLimiting (6)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (6)
172
_queueCount
-= oldestRequest.Count;
185
_queueCount
+= oldestRequest.Count;
206
_queueCount
+= permitCount;
337
_queueCount
-= nextPendingRequest.Count;
354
_queueCount
+= nextPendingRequest.Count;
495
limiter.
_queueCount
-= registration.Count;
10 references to _queueCount
System.Threading.RateLimiting (10)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (10)
93
CurrentQueuedCount =
_queueCount
,
163
Debug.Assert(_options.QueueLimit >=
_queueCount
);
164
if (_options.QueueLimit -
_queueCount
< permitCount)
173
Debug.Assert(
_queueCount
>= 0);
194
while (_options.QueueLimit -
_queueCount
< permitCount);
207
Debug.Assert(
_queueCount
<= _options.QueueLimit);
215
int replenishAmount = permitCount - _permitCount +
_queueCount
;
239
if (
_queueCount
== 0 || (
_queueCount
> 0 && _options.QueueProcessingOrder == QueueProcessingOrder.NewestFirst))
362
Debug.Assert(
_queueCount
>= 0);