This topic has not yet been rated - Rate this topic

WebHttpRelayBinding Constructor (String)

Initializes a new instance of the WebHttpRelayBinding class using the specified configuration name.

Namespace:  Microsoft.ServiceBus
Assembly:  Microsoft.ServiceBus (in Microsoft.ServiceBus.dll)
public WebHttpRelayBinding(
	string configurationName
)

Parameters

configurationName
Type: System.String
The configuration to use.

The binding can be set up administratively in a .config file. To use the constructor, refer to the binding name set in the configuration.

WebHttpRelayBinding() will use the default configuration in your App.config file. Therefore, you should use WebHttpRelayBinding(String) only when you have multiple configurations defined and you wish to use one that is not defined as the default.

Bindings are generally initialized in the beginning of an application, and then used as part of the channel creation to connect to the Service Bus. Values on the binding are set either in the App.config file, programmatically, or else a combination of the two. Binding constructors are used by both host (listener) and client (receiver) applications. For more information, see Building an AppFabric Service Bus Client Application and Building a Service for the AppFabric Service Bus.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.
facebook page visit twitter rss feed newsletter