Baza Wiedzy MSDN
EN
Ta zawartość nie jest dostępna w wymaganym języku. Wersja w języku angielskim znajduje się tutaj.

WS2007HttpRelayBinding Constructor (EndToEndSecurityMode, RelayClientAuthenticationType, Boolean)

 

Initializes a new instance of the WS2007HttpRelayBinding class with a specified type of security used by the binding, the specified authentication for the client relay, and a value that indicates whether a reliable session is enabled.

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

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

Parameters

securityMode
Type: Microsoft.ServiceBus.EndToEndSecurityMode

Specifies the type of security that is used with the SOAP message and for the client.

relayClientAuthenticationType
Type: Microsoft.ServiceBus.RelayClientAuthenticationType

The type of authentication used by the client.

reliableSessionEnabled
Type: System.Boolean

true if a reliable session is enabled; otherwise, 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.

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 a7fc4146-ee2c-444c-82d4-ef6faffccc2d in the WCF documentation.

In general, you would use this constructor in the beginning of an application, before creating a connection to 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 5f8947bc-26c6-4b15-a3a4-74bd3a0edb58 and 3468b3db-91b6-4e76-a5ff-216d4c765d05 Application.

Return to top
Pokaż:
© 2016 Microsoft