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

属性值

Int32

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

例外

值小于或等于零。

注解

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

当堆栈中的高层调用 AcceptDispatch 时,该连接就会从等待调度的连接队列中移除。

适用于