HttpClientHandler.MaxConnectionsPerServer 属性

定义

获取或设置使用 HttpClient 对象发出请求时允许的最大并发连接数(每个服务器终结点)。Gets or sets the maximum number of concurrent connections (per server endpoint) allowed when making requests using an HttpClient object. 请注意,该限制针对每个服务器终结点,例如,值为 256 表示允许 256 个到 http://www.adatum.com/ 的并发连接,以及另外 256 个到 http://www.adventure-works.com/ 的并发连接。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); };
public int MaxConnectionsPerServer { get; set; }
member this.MaxConnectionsPerServer : int with get, set
Public Property MaxConnectionsPerServer As Integer

属性值

HttpClient 对象允许的最大并发连接数(每个服务器终结点)。The maximum number of concurrent connections (per server endpoint) allowed by an HttpClient object.

适用于