WebHttpBehavior.ApplyClientBehavior(ServiceEndpoint, ClientRuntime) Method

Definition

Implements the ApplyClientBehavior(ServiceEndpoint, ClientRuntime) method to support modification or extension of the client across an endpoint.

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)

Parameters

endpoint
ServiceEndpoint

The endpoint that exposes the contract.

clientRuntime
ClientRuntime

The client to which the custom behavior is applied.

Implements

Remarks

As part of this method, GetRequestClientFormatter(OperationDescription, ServiceEndpoint) and GetReplyClientFormatter(OperationDescription, ServiceEndpoint) are called for each operation to determine the IClientMessageFormatter to install.

Applies to