WebMessageEncodingBindingElement.MaxWritePoolSize 属性
定义
获取或设置一个值,该值指定无需分配新的编写器便可处理传出消息的最大编写器数,该数值将分配到池中。Gets or sets a value that specifies the maximum number of writers that is allocated to a pool and that is available to process outgoing messages without allocating new writers.
public:
property int MaxWritePoolSize { int get(); void set(int value); };
public int MaxWritePoolSize { get; set; }
member this.MaxWritePoolSize : int with get, set
Public Property MaxWritePoolSize As Integer
属性值
用于对传出消息进行处理的最大编写器数。The maximum number of writers available to process outgoing messages. 默认值为 16 个各种类型的编写器。The default is 16 writers of each type.
例外
值小于或等于零。The value is less than or equal to zero.
注解
增大此数字将会增加内存消耗,但能够让编码器处理传出消息的突现高峰,因为编码器可以使用池中已创建的编写器,而不必创建新的编写器。Increasing this number increases memory consumption, but prepares the encoder to deal with sudden bursts of outgoing messages because it is able to use writers from the pool that are already created instead of creating new ones.