Share via


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

속성 값

Int32

새 판독기를 할당하지 않고 동시에 읽을 수 있는 최대 메시지 수입니다. 기본값은 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 및 원시 이진 형식을 읽고 쓸 수 있는 복합 인코더를 구성합니다. 이 인코더는 세 개의 개별 인코더로 구성됩니다. 이 설정은 인코더별 최대 판독기 수에 영향을 줍니다.

적용 대상