WebHttpBehavior.GetRequestClientFormatter Method

Definition

Gets the request formatter on the client for the specified service operation and endpoint.

C#
protected virtual System.ServiceModel.Dispatcher.IClientMessageFormatter GetRequestClientFormatter(System.ServiceModel.Description.OperationDescription operationDescription, System.ServiceModel.Description.ServiceEndpoint endpoint);

Parameters

operationDescription
OperationDescription

The service operation.

endpoint
ServiceEndpoint

The service endpoint.

Returns

An IClientMessageFormatter reference to the request formatter on the client for the specified operation and endpoint.

Remarks

This is an extensibility point that derived behaviors can use to supply their own implementation of IClientMessageFormatter that is called to convert the input parameters of the service operation call to a request message. Parameters specified in the UriTemplate of the service operation must be serialized to the To URI of the request message and other parameters must be serialized to the body of the request message.

Applies to

Ürün Sürümler
.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