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; 82if (permitCount > _options.PermitLimit) 84throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.PermitLimit)); 121if (permitCount > _options.PermitLimit) 123throw new ArgumentOutOfRangeException(nameof(permitCount), permitCount, SR.Format(SR.PermitLimitExceeded, permitCount, _options.PermitLimit)); 144Debug.Assert(_options.QueueLimit >= _queueCount); 145if (_options.QueueLimit - _queueCount < permitCount) 147if (_options.QueueProcessingOrder == QueueProcessingOrder.NewestFirst && permitCount <= _options.QueueLimit) 175while (_options.QueueLimit - _queueCount < permitCount); 188Debug.Assert(_queueCount <= _options.QueueLimit); 211if (_queueCount == 0 || (_queueCount > 0 && _options.QueueProcessingOrder == QueueProcessingOrder.NewestFirst)) 243Debug.Assert(_permitCount <= _options.PermitLimit); 252_options.QueueProcessingOrder == QueueProcessingOrder.OldestFirst 261_options.QueueProcessingOrder == QueueProcessingOrder.OldestFirst 275_options.QueueProcessingOrder == QueueProcessingOrder.OldestFirst 314if (_permitCount == _options.PermitLimit) 340RequestRegistration next = _options.QueueProcessingOrder == QueueProcessingOrder.OldestFirst