SALES: 1-800-867-1380

WebHttpRelayBinding Constructor

Initializes a new instance of the WebHttpRelayBinding class.

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

public WebHttpRelayBinding()

By default, no end-to-end security is specified for the WebHttpRelayBinding, although the application service-to-relay channel is always secure. The default client authentication type is RelayClientAuthenticationType.RelayAccessToken, which indicates that clients of a service are required to present a security token issued by the Windows Azure Access Control service to the Windows Azure Service Bus service when sending messages. Note that services (listeners) are always required to authenticate with the Windows Azure Access Control service and present an authorization token to the Windows Azure Service Bus.

If you have a default configuration defined in your App.config file, WebHttpRelayBinding() will use that configuration. If you have multiple configurations in your App.config file and wish to use a particular one, you may need to use WebHttpRelayBinding(String) instead.

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.

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

Community Additions

© 2014 Microsoft