匯出 (0) 列印
全部展開

WS2007HttpRelayBinding 建構函式 (EndToEndSecurityMode, RelayClientAuthenticationType, Boolean)

使用繫結所使用的指定安全性類型、指定的用戶端轉送驗證,以及指出是否已啟用可靠工作階段的值,初始化 WS2007HttpRelayBinding 類別的新執行個體。

命名空間:  Microsoft.ServiceBus
組件:  Microsoft.ServiceBus (在 Microsoft.ServiceBus.dll 中)

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

參數

securityMode
型別:Microsoft.ServiceBus..::..EndToEndSecurityMode
指定與 SOAP 訊息搭配使用且適用於用戶端的安全性類型。
relayClientAuthenticationType
型別:Microsoft.ServiceBus..::..RelayClientAuthenticationType
用戶端所使用的驗證類型。
reliableSessionEnabled
型別:System..::..Boolean
如果已啟用可靠的工作階段,則為 true,否則為 false

Controls whether 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. 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 the service (listener) wants to take over the responsibility of authenticating/authorizing clients, it can opt out of the integration between Windows Azure Access Control and Windows Azure 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 Windows Azure 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.

社群新增項目

新增
Microsoft 正展開一份線上問卷調查,了解您對於 MSDN 網站的看法。 如果您選擇參加,您離開 MSDN 網站時即會顯示線上問卷調查。

您是否想要參加?
顯示:
© 2014 Microsoft