1 write to _options
System.Threading.RateLimiting (1)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (1)
55
_options
= new ConcurrencyLimiterOptions
18 references to _options
System.Threading.RateLimiting (18)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (18)
62
_permitCount =
_options
.PermitLimit;
82
if (permitCount >
_options
.PermitLimit)
84
throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount,
_options
.PermitLimit));
121
if (permitCount >
_options
.PermitLimit)
123
throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount,
_options
.PermitLimit));
144
Debug.Assert(
_options
.QueueLimit >= _queueCount);
145
if (
_options
.QueueLimit - _queueCount < permitCount)
147
if (
_options
.QueueProcessingOrder == QueueProcessingOrder.NewestFirst && permitCount <=
_options
.QueueLimit)
175
while (
_options
.QueueLimit - _queueCount < permitCount);
188
Debug.Assert(_queueCount <=
_options
.QueueLimit);
211
if (_queueCount == 0 || (_queueCount > 0 &&
_options
.QueueProcessingOrder == QueueProcessingOrder.NewestFirst))
243
Debug.Assert(_permitCount <=
_options
.PermitLimit);
252
_options
.QueueProcessingOrder == QueueProcessingOrder.OldestFirst
261
_options
.QueueProcessingOrder == QueueProcessingOrder.OldestFirst
275
_options
.QueueProcessingOrder == QueueProcessingOrder.OldestFirst
314
if (_permitCount ==
_options
.PermitLimit)
340
RequestRegistration next =
_options
.QueueProcessingOrder == QueueProcessingOrder.OldestFirst