共用方式為


WebHttpBehavior.ApplyClientBehavior(ServiceEndpoint, ClientRuntime) 方法

定義

實作 ApplyClientBehavior(ServiceEndpoint, ClientRuntime) 方法,支援跨端點的用戶端修改與擴充。

public:
 virtual void ApplyClientBehavior(System::ServiceModel::Description::ServiceEndpoint ^ endpoint, System::ServiceModel::Dispatcher::ClientRuntime ^ clientRuntime);
public virtual void ApplyClientBehavior (System.ServiceModel.Description.ServiceEndpoint endpoint, System.ServiceModel.Dispatcher.ClientRuntime clientRuntime);
abstract member ApplyClientBehavior : System.ServiceModel.Description.ServiceEndpoint * System.ServiceModel.Dispatcher.ClientRuntime -> unit
override this.ApplyClientBehavior : System.ServiceModel.Description.ServiceEndpoint * System.ServiceModel.Dispatcher.ClientRuntime -> unit
Public Overridable Sub ApplyClientBehavior (endpoint As ServiceEndpoint, clientRuntime As ClientRuntime)

參數

endpoint
ServiceEndpoint

公開合約的端點。

clientRuntime
ClientRuntime

套用自訂行為的用戶端。

實作

備註

做為此方法的一部分,會對每個作業呼叫 GetRequestClientFormatter(OperationDescription, ServiceEndpoint)GetReplyClientFormatter(OperationDescription, ServiceEndpoint),以判斷要安裝的 IClientMessageFormatter

適用於