SALES: 1-800-867-1380

NetTcpRelayBindingBase.ReaderQuotas Property

Gets or sets constraints on the complexity of SOAP messages that can be processed by endpoints configured with this binding. This property cannot be null.

Namespace:  Microsoft.ServiceBus
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)

public XmlDictionaryReaderQuotas ReaderQuotas { get; set; }

Property Value

Type: System.Xml.XmlDictionaryReaderQuotas
Returns a XmlDictionaryReaderQuotas that specifies the complexity constraints on soap messages exchanged. The default values for these constraints are provided in the following Remarks section.

ExceptionCondition
[ArgumentNullException]

ReaderQuotas is null.

The complexity constraints protect against a class of denial of service (DOS) attacks that attempt to use message complexity to tie up endpoint processing resources. The properties that express these constraints and their default values are as follows:

  • MaxDepth = 32

  • MaxStringContentLength = 8192

  • MaxBytesPerRead = 4096

  • MaxnameTableCharCount = 16384

MaxBufferSize, MaxBufferPoolSize, ReaderQuotas, and MaxReceivedMessageSize are often used together to assist with memory management and provide a potential defense against Denial-of-Service (DoS) attacks. In this context, these members are very similar to their WCF counterparts. For more information, see Security Considerations for Data in the WCF documentation.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft