Export (0) Print
Expand All

WebHttpRelayBinding.ReaderQuotas Property

Gets or sets xml reader quotas on the messages processed.

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 contains the reader quotas.

The reader quotas put constraints on the complexity of xml messages. The default values are:

  • MaxDepth = 32

  • MaxStringContentLength = 8192

  • MaxArrayLength = 16384

  • MaxBytesPerRead = 4096

  • MaxNameTableCharCount = 16384

ReaderQuotas is often used in conjunction with MaxReceivedMessageSize, MaxBufferPoolSize, and MaxBufferSize 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.

Community Additions

© 2014 Microsoft