WebMessageEncodingElement.MaxWritePoolSize 属性

定义

获取或设置一个值,该值指定可在不分配新编写器的情况下同时发送的最大消息数。

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

属性值

可在不分配新编写器的情况下同时发送的最大消息数。 默认值为 16。

属性

示例

static void Main(string[] args)  
{  
   int maxWritePoolSize = webMEE.MaxWritePoolSize;  
   Console.WriteLine("The MaxWritePoolSize is: {0}", maxWritePoolSize);  
   maxWritePoolSize = 48;  
   Console.WriteLine("The MaxWritePoolSize has been changed to: {0}", maxWritePoolSize);  
}  

注解

较大的池大小使系统能够更容忍活动高峰,但代价是更大的工作集。 配置 WebMessageEncodingElement 一个复合编码器,该编码器能够读取和写入纯文本 XML、JSON 和原始二进制文件。 此编码器由三个单独的编码器组成。 此设置会影响每个编码器的最大编写器数。

适用于