ReliableSessionElement.MaxPendingChannels 属性

定义

获取或设置可等待在侦听器上接受的最大通道数。

public:
 property int MaxPendingChannels { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("maxPendingChannels", DefaultValue=4)]
[System.Configuration.IntegerValidator(MaxValue=16384, MinValue=1)]
public int MaxPendingChannels { get; set; }
[<System.Configuration.ConfigurationProperty("maxPendingChannels", DefaultValue=4)>]
[<System.Configuration.IntegerValidator(MaxValue=16384, MinValue=1)>]
member this.MaxPendingChannels : int with get, set
Public Property MaxPendingChannels As Integer

属性值

可以等待在侦听器上接受的最大通道数。 默认值为 128。

属性

注解

此值应是介于 1 和 16384 之间的整数(含)。

等待接受通道时,通道处于挂起状态。 达到该限制后,不会创建通道。 相反,它们处于挂起模式,直到此数字关闭(通过接受挂起的通道)。 此限制适用于每个工厂。

达到阈值并且远程应用程序尝试建立新的可靠会话时,请求将被拒绝,并且打开的作会提示出现此错误。 此限制不适用于挂起的传出通道数。

适用于