WebHttpBehavior.ApplyClientBehavior(ServiceEndpoint, ClientRuntime) Method

Definition

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

C#
public virtual void ApplyClientBehavior(System.ServiceModel.Description.ServiceEndpoint endpoint, System.ServiceModel.Dispatcher.ClientRuntime 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

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1