Exportar (0) Imprimir
Expandir Tudo

Construtor WS2007HttpRelayBinding

Inicializa uma nova instância da classe WS2007HttpRelayBinding com um tipo de segurança especificado usado pela associação.

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

public WS2007HttpRelayBinding()

This constructor initializes an instance of the WS2007HttpBinding class and sets the MessageSecurityVersion, ReliableMessagingVersion, and TransactionProtocol properties that specify the WS-Security 1.1, WS-Trust 1.3, WS-SecureConversation 1.3, WS-SecurityPolicy 1.2, and WS-I Basic Security Profile 1.0 security protocols.

The default end-to-end security mode is EndToEndSecurityMode.Transport, which indicates that the SOAP message is secured with SSL. 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. By default, reliable session is disabled.

If you have a default configuration defined in your App.config file, WS2007HttpRelayBinding 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 WS2007HttpRelayBinding(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 Windows Azure Service Bus. Binding constructors are used by both service and client applications. For more information, see Building an AppFabric Service Bus Client Application and Building a Service for the AppFabric Service Bus.

Contribuições da comunidade

© 2015 Microsoft