Class ConcurrencyRateLimitingOptions
- Namespace
- ProjectTemplate.Web.Options
- Assembly
- ProjectTemplate.Web.dll
Represents concurrency rate limiting configuration.
public sealed class ConcurrencyRateLimitingOptions
- Inheritance
-
ConcurrencyRateLimitingOptions
- Inherited Members
Properties
PartitionByClient
Gets or sets a value indicating whether each client receives its own concurrency permits for an endpoint.
public bool PartitionByClient { get; set; }
Property Value
Remarks
Defaults to true, so one client holding slow requests cannot exhaust an endpoint's permits for every other client. Set to false to share one permit pool per endpoint across all clients, which caps total endpoint concurrency but lets a single client consume every permit.
PermitLimit
The maximum number of concurrent permits allowed.
public int PermitLimit { get; set; }
Property Value
QueueLimit
The maximum number of requests allowed to wait in the queue.
public int QueueLimit { get; set; }