SALES: 1-800-867-1380

NetOnewayRelayBinding.ReaderQuotas Property

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

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

public XmlDictionaryReaderQuotas ReaderQuotas { get; set; }

Property Value

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

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 the Security Considerations for Data topic in the WCF documentation.

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

Community Additions

ADD
Show:
© 2014 Microsoft