Exporter (0) Imprimer
Développer tout

Constructeur WS2007HttpRelayBinding (EndToEndSecurityMode, RelayClientAuthenticationType, Boolean)

Initialise une nouvelle instance de la classe WS2007HttpRelayBinding, avec un type de sécurité spécifique utilisé par la liaison, l'authentification spécifiée pour le relais du client, et une valeur indiquant si une session fiable est activée.

Espace de noms :  Microsoft.ServiceBus
Assembly :  Microsoft.ServiceBus (en Microsoft.ServiceBus.dll)

public WS2007HttpRelayBinding(
	EndToEndSecurityMode securityMode,
	RelayClientAuthenticationType relayClientAuthenticationType,
	bool reliableSessionEnabled
)

Paramètres

securityMode
Type : Microsoft.ServiceBus..::..EndToEndSecurityMode
Spécifie le type de sécurité utilisé avec le message SOAP et pour le client.
relayClientAuthenticationType
Type : Microsoft.ServiceBus..::..RelayClientAuthenticationType
Type d'authentification utilisé par le client.
reliableSessionEnabled
Type : System..::..Boolean
La valeur est true si une session fiable est activée, sinon false.

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 property to RelayClientAuthenticationType.None.

A reliable session is a concept inherited from the Windows Communication Foundation (WCF) that provides end-to-end message transfer reliability between SOAP endpoints. For more information, see the Reliable Sessions Overview in the WCF documentation.

In general, you would use this constructor in the beginning of an application, before creating a connection to the Service Bus. You cannot change the associated security mode, authentication type, or reliable session once you have created the binding. The constructor is used by both service and client applications. For more information, see Building a Service for the AppFabric Service Bus and Building an AppFabric Service Bus Client Application Application.

Ajouts de la communauté

Afficher:
© 2015 Microsoft