SALES: 1-800-867-1380

WebHttpRelayBinding Constructor (EndToEndWebHttpSecurityMode, RelayClientAuthenticationType)

Initializes a new instance of the WebHttpRelayBinding class using the specified type of security and relay client authentication.

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

public WebHttpRelayBinding(
	EndToEndWebHttpSecurityMode securityMode,
	RelayClientAuthenticationType relayClientAuthenticationType


Type: Microsoft.ServiceBus.EndToEndWebHttpSecurityMode
The type of security used with the binding.
Type: Microsoft.ServiceBus.RelayClientAuthenticationType
The type of client authentication used on the relay.

Unlike some of the other bindings, WebHttpRelayBinding does not support message security. The options for security mode are none, transport security (via SSL and proxy authentication), and transport credential only (proxy authentication only).

RelayClientAuthenticationType controls whether clients of a service are required to present a security token issued by the Access Control service to the Service Bus service when sending messages. Services (listeners) are always required to authenticate with the Access Control service and present an authorization token to the Service Bus. If the service (listener) wants to take over the responsibility of authenticating/authorizing clients, it can opt out of the integration between Access Control and Service Bus by setting this parameter to RelayClientAuthenticationType.None.

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

© 2015 Microsoft