Export (0) Print
Expand All

BasicHttpRelayBinding.MaxReceivedMessageSize Property

Gets or sets the maximum size for a message that can be received on a channel configured with this binding.

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

public long MaxReceivedMessageSize { get; set; }

Property Value

Type: System.Int64
Returns Int64.The maximum size, in bytes, for a message that is processed by the binding. The default value is 65,536 bytes.

The size of the messages that can be received on the wire by services using the BasicHttpRelayBinding is bounded by the amount of memory allocated for each message. This bound on message size is intended to limit exposure to DoS-style attacks.

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.

Community Additions

ADD
Show:
© 2015 Microsoft