NamedPipeConnectionPoolSettings.MaxOutboundConnectionsPerEndpoint 属性

定义

获取或设置连接池中缓存的每个终结点的最大出站连接数。

public:
 property int MaxOutboundConnectionsPerEndpoint { int get(); void set(int value); };
public int MaxOutboundConnectionsPerEndpoint { get; set; }
member this.MaxOutboundConnectionsPerEndpoint : int with get, set
Public Property MaxOutboundConnectionsPerEndpoint As Integer

属性值

Int32

连接池中缓存的每个终结点所允许的最大出站连接数。 默认值为 10。

例外

值小于或等于零。

注解

这限制了为每个唯一终结点缓存的连接数。 如果由于具有更多活动客户端连接而超出此值,则服务可能对客户端无响应,这时应将此值调整到大于为每个唯一终结点缓存的最大预期连接数。

适用于