1 write to _options
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (1)
57
_options
= new ConcurrencyLimiterOptions
18 references to _options
System.Threading.RateLimiting (18)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (18)
64
_permitCount =
_options
.PermitLimit;
84
if (permitCount >
_options
.PermitLimit)
86
throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount,
_options
.PermitLimit));
123
if (permitCount >
_options
.PermitLimit)
125
throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount,
_options
.PermitLimit));
146
Debug.Assert(
_options
.QueueLimit >= _queueCount);
147
if (
_options
.QueueLimit - _queueCount < permitCount)
149
if (
_options
.QueueProcessingOrder == QueueProcessingOrder.NewestFirst && permitCount <=
_options
.QueueLimit)
177
while (
_options
.QueueLimit - _queueCount < permitCount);
190
Debug.Assert(_queueCount <=
_options
.QueueLimit);
213
if (_queueCount == 0 || (_queueCount > 0 &&
_options
.QueueProcessingOrder == QueueProcessingOrder.NewestFirst))
245
Debug.Assert(_permitCount <=
_options
.PermitLimit);
254
_options
.QueueProcessingOrder == QueueProcessingOrder.OldestFirst
263
_options
.QueueProcessingOrder == QueueProcessingOrder.OldestFirst
277
_options
.QueueProcessingOrder == QueueProcessingOrder.OldestFirst
316
if (_permitCount ==
_options
.PermitLimit)
342
RequestRegistration next =
_options
.QueueProcessingOrder == QueueProcessingOrder.OldestFirst