WebMessageEncodingElement.MaxReadPoolSize プロパティ

定義

新しいリーダーを割り当てずに同時に読み取ることができるメッセージの最大数を指定する値を取得または設定します。

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

プロパティ値

新しいリーダーを割り当てずに同時に読み取ることができるメッセージの最大数。 既定値は 64 です。

属性

static void Main(string[] args)  
{  
    WebMessageEncodingElement webMEE = new WebMessageEncodingElement();  
    int maxReadPoolSize = webMEE.MaxReadPoolSize;  
    Console.WriteLine("The MaxReadPoolSize is: {0}", maxReadPoolSize);  
    maxReadPoolSize = 128;  
    Console.WriteLine("The MaxReadPoolSize has been changed to: {0}", maxReadPoolSize);  
}  

注釈

プール サイズが大きいほど、システムはより大きなワーキング セットを犠牲にしてアクティビティの急増に対する耐性を高めます。 WebMessageEncodingElementは、プレーンテキスト XML、JSON、および生バイナリの読み取りと書き込みが可能な複合エンコーダーを構成します。 このエンコーダーは、3 つの別個のエンコーダーで構成されています。 この設定は、個々のエンコーダーのリーダーの最大数に影響します。

適用対象