WebMessageEncodingElement.MaxReadPoolSize Özellik

Tanım

Yeni okuyucu ayırmadan aynı anda okunabilecek en fazla ileti sayısını belirten bir değer alır veya ayarlar.

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

Özellik Değeri

Yeni okuyucu ayırmadan aynı anda okunabilecek ileti sayısı üst sınırı. Varsayılan değer 64'dür.

Öznitelikler

Örnekler

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);  
}  

Açıklamalar

Daha büyük havuz boyutları, sistemi daha büyük bir çalışma kümesi maliyetiyle etkinlik artışlarına daha dayanıklı hale getirir. düz WebMessageEncodingElement metin XML, JSON ve ham ikili dosyası okuyabilen ve yazabilen bir bileşik kodlayıcı yapılandırılır. Bu kodlayıcı üç ayrı kodlayıcıdan oluşur. Bu ayar, her bir kodlayıcı için en fazla okuyucu sayısını etkiler.

Şunlara uygulanır