6 writes to _queueCount
System.Threading.RateLimiting (6)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (6)
171
_queueCount
-= oldestRequest.Count;
184
_queueCount
+= oldestRequest.Count;
205
_queueCount
+= permitCount;
336
_queueCount
-= nextPendingRequest.Count;
353
_queueCount
+= nextPendingRequest.Count;
494
limiter.
_queueCount
-= registration.Count;
10 references to _queueCount
System.Threading.RateLimiting (10)
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (10)
92
CurrentQueuedCount =
_queueCount
,
162
Debug.Assert(_options.QueueLimit >=
_queueCount
);
163
if (_options.QueueLimit -
_queueCount
< permitCount)
172
Debug.Assert(
_queueCount
>= 0);
193
while (_options.QueueLimit -
_queueCount
< permitCount);
206
Debug.Assert(
_queueCount
<= _options.QueueLimit);
214
int replenishAmount = permitCount - _permitCount +
_queueCount
;
238
if (
_queueCount
== 0 || (
_queueCount
> 0 && _options.QueueProcessingOrder == QueueProcessingOrder.NewestFirst))
361
Debug.Assert(
_queueCount
>= 0);