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

适用于