HttpClientHandler.MaxConnectionsPerServer Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Povratne informacije
https://aka.ms/ContentUserFeedback.
Kmalu na voljo: V letu 2024 bomo ukinili storitev Težave v storitvi GitHub kot mehanizem za povratne informacije za vsebino in jo zamenjali z novim sistemom za povratne informacije. Za več informacij si oglejte:Pošlji in prikaži povratne informacije za