46 references to QueueProcessingOrder
Microsoft.AspNetCore.ConcurrencyLimiter (3)
QueuePolicies\BasePolicy.cs (1)
19public BasePolicy(IOptions<QueuePolicyOptions> options, QueueProcessingOrder order)
QueuePolicies\QueuePolicy.cs (1)
12: base(options, QueueProcessingOrder.OldestFirst)
QueuePolicies\StackPolicy.cs (1)
12: base(options, QueueProcessingOrder.NewestFirst)
Microsoft.AspNetCore.RateLimiting.Tests (3)
RateLimitingMetricsTests.cs (2)
181options.QueueProcessingOrder = QueueProcessingOrder.OldestFirst; 256options.QueueProcessingOrder = QueueProcessingOrder.OldestFirst;
RateLimitingMiddlewareTests.cs (1)
226options.QueueProcessingOrder = QueueProcessingOrder.OldestFirst;
Microsoft.Extensions.Http.Resilience.Tests (1)
Polly\HttpRateLimiterStrategyOptionsTests.cs (1)
28_testObject.DefaultRateLimiterOptions.QueueProcessingOrder.Should().Be(QueueProcessingOrder.OldestFirst);
RateLimitingSample (3)
Program.cs (2)
29options.QueueProcessingOrder = QueueProcessingOrder.OldestFirst; 42QueueProcessingOrder = QueueProcessingOrder.NewestFirst,
SampleRateLimiterPolicy.cs (1)
31QueueProcessingOrder = QueueProcessingOrder.OldestFirst,
System.Threading.RateLimiting (36)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (6)
147if (_options.QueueProcessingOrder == QueueProcessingOrder.NewestFirst && permitCount <= _options.QueueLimit) 211if (_queueCount == 0 || (_queueCount > 0 && _options.QueueProcessingOrder == QueueProcessingOrder.NewestFirst)) 252_options.QueueProcessingOrder == QueueProcessingOrder.OldestFirst 261_options.QueueProcessingOrder == QueueProcessingOrder.OldestFirst 275_options.QueueProcessingOrder == QueueProcessingOrder.OldestFirst 340RequestRegistration next = _options.QueueProcessingOrder == QueueProcessingOrder.OldestFirst
System\Threading\RateLimiting\ConcurrencyLimiterOptions.cs (3)
21/// <see cref="QueueProcessingOrder.OldestFirst"/> by default. 23public QueueProcessingOrder QueueProcessingOrder { get; set; } = QueueProcessingOrder.OldestFirst;
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (6)
165if (_options.QueueProcessingOrder == QueueProcessingOrder.NewestFirst && permitCount <= _options.QueueLimit) 238if (_queueCount == 0 || (_queueCount > 0 && _options.QueueProcessingOrder == QueueProcessingOrder.NewestFirst)) 314_options.QueueProcessingOrder == QueueProcessingOrder.OldestFirst 323_options.QueueProcessingOrder == QueueProcessingOrder.OldestFirst 332_options.QueueProcessingOrder == QueueProcessingOrder.OldestFirst 397RequestRegistration next = _options.QueueProcessingOrder == QueueProcessingOrder.OldestFirst
System\Threading\RateLimiting\FixedWindowRateLimiterOptions.cs (3)
36/// <see cref="QueueProcessingOrder.OldestFirst"/> by default. 38public QueueProcessingOrder QueueProcessingOrder { get; set; } = QueueProcessingOrder.OldestFirst;
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (6)
177if (_options.QueueProcessingOrder == QueueProcessingOrder.NewestFirst && permitCount <= _options.QueueLimit) 241if (_queueCount == 0 || (_queueCount > 0 && _options.QueueProcessingOrder == QueueProcessingOrder.NewestFirst)) 324_options.QueueProcessingOrder == QueueProcessingOrder.OldestFirst 333_options.QueueProcessingOrder == QueueProcessingOrder.OldestFirst 343_options.QueueProcessingOrder == QueueProcessingOrder.OldestFirst 410RequestRegistration next = _options.QueueProcessingOrder == QueueProcessingOrder.OldestFirst
System\Threading\RateLimiting\SlidingWindowRateLimiterOptions.cs (3)
42/// <see cref="QueueProcessingOrder.OldestFirst"/> by default. 44public QueueProcessingOrder QueueProcessingOrder { get; set; } = QueueProcessingOrder.OldestFirst;
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (6)
170if (_options.QueueProcessingOrder == QueueProcessingOrder.NewestFirst && tokenCount <= _options.QueueLimit) 245if (_queueCount == 0 || (_queueCount > 0 && _options.QueueProcessingOrder == QueueProcessingOrder.NewestFirst)) 328_options.QueueProcessingOrder == QueueProcessingOrder.OldestFirst 337_options.QueueProcessingOrder == QueueProcessingOrder.OldestFirst 346_options.QueueProcessingOrder == QueueProcessingOrder.OldestFirst 411RequestRegistration next = _options.QueueProcessingOrder == QueueProcessingOrder.OldestFirst
System\Threading\RateLimiting\TokenBucketRateLimiterOptions.cs (3)
42/// <see cref="QueueProcessingOrder.OldestFirst"/> by default. 44public QueueProcessingOrder QueueProcessingOrder { get; set; } = QueueProcessingOrder.OldestFirst;