ConnectionOrientedTransportBindingElement.MaxPendingConnections 属性

定义

获取或设置等待服务调度的最大连接数。

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

属性值

等待服务调度的入站连接的最大数量。 默认值为 12 * 处理器数。

例外

该值小于或等于零。

注解

此属性控制一个传输已接受但 ServiceModel 调度程序尚未选取的连接的数目。 若要设置此值,请对绑定使用MaxConnections或对绑定元素使用maxOutboundConnectionsPerEndpoint

当堆栈中的较高层调用 AcceptDispatch时,将从等待调度的连接队列中删除该连接。

适用于