TcpConnectionPoolSettingsElement.MaxOutboundConnectionsPerEndpoint 属性

定义

获取或设置由服务启动的通往远程终结点的最大连接数。Gets or sets the maximum number of connections to a remote endpoint initiated by the service.

public:
 property int MaxOutboundConnectionsPerEndpoint { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("maxOutboundConnectionsPerEndpoint", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
[System.Configuration.IntegerValidator(MinValue=0)]
public int MaxOutboundConnectionsPerEndpoint { get; set; }
[<System.Configuration.ConfigurationProperty("maxOutboundConnectionsPerEndpoint", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
[<System.Configuration.IntegerValidator(MinValue=0)>]
member this.MaxOutboundConnectionsPerEndpoint : int with get, set
Public Property MaxOutboundConnectionsPerEndpoint As Integer

属性值

Int32

由服务启动的通往远程终结点的最大连接数。The maximum number of connections to a remote endpoint initiated by the service. 默认值为 10。The default is 10.

属性

注解

超出此限制的连接需要排队,直到连接数低于限制值。Connections in excess of the limit are queued until a space below the limit becomes available. 此属性限制连接在引发异常前保持排队状态的持续时间。This property limits the duration in which connections remain queued before an exception is thrown.

此属性限制从客户端到特定服务终结点的同时活动的连接数。This property limits the number of simultaneous active connections from the client to a particular service endpoint. 如果由于具有更多的活动客户端连接而超出此值,则服务可能表现为对客户端无响应。If this value is exceeded by having more active client connections, the service may appear unresponsive to the client. 在此情况下,应调整此值使之超过与特定终结点的同时活动的最大预期客户端连接数。In this case, this value should be adjusted to exceed the maximum number of expected simultaneous client connections to a specific endpoint.

适用于