Table of Contents

Class WSHttpRelayBindingBaseElement

Namespace
Microsoft.ServiceBus.Configuration
Assembly
Microsoft.ServiceBus.dll

Provides a base class for theWSHttpRelayBindingElement configuration element that specifies a binding that supports distributed transactions and secure, reliable sessions.

public abstract class WSHttpRelayBindingBaseElement : StandardBindingElement
Inheritance
WSHttpRelayBindingBaseElement
Derived

Constructors

WSHttpRelayBindingBaseElement()

Initializes a new instance of the WSHttpRelayBindingBaseElement class.

protected WSHttpRelayBindingBaseElement()

WSHttpRelayBindingBaseElement(string)

Initializes a new instance of the WSHttpRelayBindingBaseElement class with the specified name.

protected WSHttpRelayBindingBaseElement(string name)

Parameters

name string

A name that uniquely identifies this configuration element.

Properties

IsDynamic

Gets or sets whether the binding base element is dynamic.

public bool IsDynamic { get; set; }

Property Value

bool

true if the binding base element is dynamic; otherwise, false.

MaxBufferPoolSize

Gets or sets the maximum size of the buffer pool that stores messages processed by the WSHttpRelayBinding binding.

public long MaxBufferPoolSize { get; set; }

Property Value

long

The maximum size of the buffer pool that stores messages processed by the WSHttpRelayBinding binding. The default is 524288 bytes.

MaxReceivedMessageSize

Gets or sets the maximum size for messages received on a channel configured with the WSHttpRelayBinding binding.

public long MaxReceivedMessageSize { get; set; }

Property Value

long

The maximum size for messages received on a channel configured with the WSHttpRelayBinding binding. The default is 65536 bytes.

MessageEncoding

Gets or sets whether MTOM or Text/XML is used to encode SOAP messages.

public WSMessageEncoding MessageEncoding { get; set; }

Property Value

WSMessageEncoding

Indicates whether MTOM or Text/XML is used to encode SOAP messages. The default is Text/XML.

Properties

Gets a collection of properties of this binding configuration element.

protected override ConfigurationPropertyCollection Properties { get; }

Property Value

ConfigurationPropertyCollection

A collection of properties of this binding configuration element.

ProxyAddress

Gets or sets the URI address of the HTTP proxy.

public Uri ProxyAddress { get; set; }

Property Value

Uri

The URI address of the HTTP proxy. The default is null.

ReaderQuotas

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

public XmlDictionaryReaderQuotasElement ReaderQuotas { get; }

Property Value

XmlDictionaryReaderQuotasElement

Constraints on the complexity of SOAP messages that can be processed by endpoints configured with the WSHttpRelayBinding binding.

ReliableSession

Gets a System.ServiceModel.Configuration.StandardBindingOptionalReliableSessionElement configuration element that represents an optional configuration setting for WS-Reliable messaging defined in the WSHttpRelayBinding binding.

public StandardBindingOptionalReliableSessionElement ReliableSession { get; }

Property Value

StandardBindingOptionalReliableSessionElement

A System.ServiceModel.Configuration.StandardBindingOptionalReliableSessionElement configuration element that represents an optional configuration setting for WS-Reliable messaging defined in the WSHttpRelayBinding binding.

TextEncoding

Gets or sets the character encoding that is used for the message text.

[TypeConverter(typeof(EncodingConverter))]
public Encoding TextEncoding { get; set; }

Property Value

Encoding

The character encoding that is used for the message text.

UseDefaultWebProxy

Gets or sets a value that indicates whether the auto-configured HTTP proxy of the system should be used, if available.

public bool UseDefaultWebProxy { get; set; }

Property Value

bool

true if the auto-configured HTTP proxy of the system should be used, if available; otherwise, false.

Methods

InitializeFrom(Binding)

Initializes this binding configuration element with the content of the specified binding.

protected override void InitializeFrom(Binding binding)

Parameters

binding Binding

A binding.

OnApplyConfiguration(Binding)

Applies the settings of this configuration element to the specified binding.

protected override void OnApplyConfiguration(Binding binding)

Parameters

binding Binding

The binding to update the settings of.