46 references to QueueProcessingOrder
Microsoft.AspNetCore.ConcurrencyLimiter (3)
QueuePolicies\BasePolicy.cs (1)
19
public 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)
181
options.QueueProcessingOrder =
QueueProcessingOrder
.OldestFirst;
256
options.QueueProcessingOrder =
QueueProcessingOrder
.OldestFirst;
RateLimitingMiddlewareTests.cs (1)
226
options.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)
29
options.QueueProcessingOrder =
QueueProcessingOrder
.OldestFirst;
42
QueueProcessingOrder =
QueueProcessingOrder
.NewestFirst,
SampleRateLimiterPolicy.cs (1)
31
QueueProcessingOrder =
QueueProcessingOrder
.OldestFirst,
System.Threading.RateLimiting (36)
System\Threading\RateLimiting\ConcurrencyLimiter.cs (6)
149
if (_options.QueueProcessingOrder ==
QueueProcessingOrder
.NewestFirst && permitCount <= _options.QueueLimit)
213
if (_queueCount == 0 || (_queueCount > 0 && _options.QueueProcessingOrder ==
QueueProcessingOrder
.NewestFirst))
254
_options.QueueProcessingOrder ==
QueueProcessingOrder
.OldestFirst
263
_options.QueueProcessingOrder ==
QueueProcessingOrder
.OldestFirst
277
_options.QueueProcessingOrder ==
QueueProcessingOrder
.OldestFirst
342
RequestRegistration next = _options.QueueProcessingOrder ==
QueueProcessingOrder
.OldestFirst
System\Threading\RateLimiting\ConcurrencyLimiterOptions.cs (3)
21
/// <see cref="
QueueProcessingOrder
.OldestFirst"/> by default.
23
public
QueueProcessingOrder
QueueProcessingOrder { get; set; } =
QueueProcessingOrder
.OldestFirst;
System\Threading\RateLimiting\FixedWindowRateLimiter.cs (6)
166
if (_options.QueueProcessingOrder ==
QueueProcessingOrder
.NewestFirst && permitCount <= _options.QueueLimit)
239
if (_queueCount == 0 || (_queueCount > 0 && _options.QueueProcessingOrder ==
QueueProcessingOrder
.NewestFirst))
315
_options.QueueProcessingOrder ==
QueueProcessingOrder
.OldestFirst
324
_options.QueueProcessingOrder ==
QueueProcessingOrder
.OldestFirst
333
_options.QueueProcessingOrder ==
QueueProcessingOrder
.OldestFirst
398
RequestRegistration next = _options.QueueProcessingOrder ==
QueueProcessingOrder
.OldestFirst
System\Threading\RateLimiting\FixedWindowRateLimiterOptions.cs (3)
36
/// <see cref="
QueueProcessingOrder
.OldestFirst"/> by default.
38
public
QueueProcessingOrder
QueueProcessingOrder { get; set; } =
QueueProcessingOrder
.OldestFirst;
System\Threading\RateLimiting\SlidingWindowRateLimiter.cs (6)
178
if (_options.QueueProcessingOrder ==
QueueProcessingOrder
.NewestFirst && permitCount <= _options.QueueLimit)
242
if (_queueCount == 0 || (_queueCount > 0 && _options.QueueProcessingOrder ==
QueueProcessingOrder
.NewestFirst))
325
_options.QueueProcessingOrder ==
QueueProcessingOrder
.OldestFirst
334
_options.QueueProcessingOrder ==
QueueProcessingOrder
.OldestFirst
344
_options.QueueProcessingOrder ==
QueueProcessingOrder
.OldestFirst
411
RequestRegistration next = _options.QueueProcessingOrder ==
QueueProcessingOrder
.OldestFirst
System\Threading\RateLimiting\SlidingWindowRateLimiterOptions.cs (3)
42
/// <see cref="
QueueProcessingOrder
.OldestFirst"/> by default.
44
public
QueueProcessingOrder
QueueProcessingOrder { get; set; } =
QueueProcessingOrder
.OldestFirst;
System\Threading\RateLimiting\TokenBucketRateLimiter.cs (6)
171
if (_options.QueueProcessingOrder ==
QueueProcessingOrder
.NewestFirst && tokenCount <= _options.QueueLimit)
246
if (_queueCount == 0 || (_queueCount > 0 && _options.QueueProcessingOrder ==
QueueProcessingOrder
.NewestFirst))
329
_options.QueueProcessingOrder ==
QueueProcessingOrder
.OldestFirst
338
_options.QueueProcessingOrder ==
QueueProcessingOrder
.OldestFirst
347
_options.QueueProcessingOrder ==
QueueProcessingOrder
.OldestFirst
412
RequestRegistration next = _options.QueueProcessingOrder ==
QueueProcessingOrder
.OldestFirst
System\Threading\RateLimiting\TokenBucketRateLimiterOptions.cs (3)
42
/// <see cref="
QueueProcessingOrder
.OldestFirst"/> by default.
44
public
QueueProcessingOrder
QueueProcessingOrder { get; set; } =
QueueProcessingOrder
.OldestFirst;