Delen via


ConcurrencyLimiterOptions Class

Definition

Options to specify the behavior of a ConcurrencyLimiter.

public sealed class ConcurrencyLimiterOptions
type ConcurrencyLimiterOptions = class
Public NotInheritable Class ConcurrencyLimiterOptions
Inheritance
ConcurrencyLimiterOptions

Constructors

ConcurrencyLimiterOptions()

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