ConcurrencyLimiterOptions Class

Definition

Options to specify the behavior of a ConcurrencyLimiter.

C#
public sealed class ConcurrencyLimiterOptions
Inheritance
ConcurrencyLimiterOptions

Constructors

Properties

PermitLimit

Maximum number of permits that can be leased concurrently. Must be set to a value > 0 by the time these options are passed to the constructor of ConcurrencyLimiter.

QueueLimit

Maximum number of permits that can be queued concurrently. Must be set to a value >= 0 by the time these options are passed to the constructor of ConcurrencyLimiter.

QueueProcessingOrder

Determines the behaviour of AcquireAsync(Int32, CancellationToken) when not enough resources can be leased.

Applies to

Product Versions
ASP.NET Core 7.0, 8.0, 9.0