Redigera

Dela via


HttpClientHandler.MaxConnectionsPerServer Property

Definition

Gets or sets the maximum number of concurrent connections (per server endpoint) allowed when making requests using an HttpClient object. Note that the limit is per server endpoint, so for example a value of 256 would permit 256 concurrent connections to http://www.adatum.com/ and another 256 to http://www.adventure-works.com/.

public:
 property int MaxConnectionsPerServer { int get(); void set(int value); };
[System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
public int MaxConnectionsPerServer { get; set; }
public int MaxConnectionsPerServer { get; set; }
[<System.Runtime.Versioning.UnsupportedOSPlatform("browser")>]
member this.MaxConnectionsPerServer : int with get, set
member this.MaxConnectionsPerServer : int with get, set
Public Property MaxConnectionsPerServer As Integer

Property Value

The maximum number of concurrent connections (per server endpoint) allowed by an HttpClient object.

Attributes

Remarks

The default value for this property is int.MaxValue.

Applies to