WCF-Xtensions Class Reference for Mono
MaxBufferPoolSize Property (SoapTcpDuplexTransportElement)






Gets or sets the maximum size of the buffer pool.
Syntax
'Declaration
 
<System.Configuration.ConfigurationPropertyAttribute(Name="maxBufferPoolSize", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=False, 
   IsRequired=False, 
   IsKey=False)>
Public Property MaxBufferPoolSize As System.Long
'Usage
 
Dim instance As SoapTcpDuplexTransportElement
Dim value As System.Long
 
instance.MaxBufferPoolSize = value
 
value = instance.MaxBufferPoolSize
[System.Configuration.ConfigurationProperty(Name="maxBufferPoolSize", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=false, 
   IsRequired=false, 
   IsKey=false)]
public System.long MaxBufferPoolSize {get; set;}
public read-write property MaxBufferPoolSize: System.Int64; 
System.Configuration.ConfigurationPropertyAttribute(Name="maxBufferPoolSize", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=, 
   IsRequired=, 
   IsKey=)
public function get,set MaxBufferPoolSize : System.long
[System.Configuration.ConfigurationProperty(Name="maxBufferPoolSize", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=false, 
   IsRequired=false, 
   IsKey=false)]
public: __property System.long get_MaxBufferPoolSize();
public: __property void set_MaxBufferPoolSize( 
   System.long value
);
[System.Configuration.ConfigurationProperty(Name="maxBufferPoolSize", 
   Options=ConfigurationPropertyOptions.None, 
   IsDefaultCollection=false, 
   IsRequired=false, 
   IsKey=false)]
public:
property System.int64 MaxBufferPoolSize {
   System.int64 get();
   void set (    System.int64 value);
}

Property Value

The maximum size of the buffer pool. The default is 524,288 bytes (512 * 1024).
Remarks

Many parts of WCF use buffers. Creating and destroying buffers each time they are used is expensive, and garbage collection for buffers is also expensive. With buffer pools, you can take a buffer from the pool, use it, and return it to the pool once you are done. Thus the overhead in creating and destroying buffers is avoided.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

SoapTcpDuplexTransportElement Class
SoapTcpDuplexTransportElement Members

Send Feedback