<PackageReference Include="System.Threading.RateLimiting" Version="11.0.0-preview.6.26359.118" />

System.Threading.RateLimiting.ConcurrencyLimiterOptions

public sealed class ConcurrencyLimiterOptions
Options to specify the behavior of a ConcurrencyLimiter.
public int PermitLimit { get; set; }

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.

public int QueueLimit { get; set; }

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.

Determines the behaviour of AcquireAsync when not enough resources can be leased.