Прочетете на английски Редактиране

Споделяне чрез


WebHttpBehavior.GetRequestDispatchFormatter Method

Definition

Gets the request formatter on the service for the given service operation and service endpoint.

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

Parameters

operationDescription
OperationDescription

The service operation.

endpoint
ServiceEndpoint

The service endpoint.

Returns

An IDispatchMessageFormatter reference to the request formatter on the service for the specified operation and endpoint.

Remarks

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

Applies to

Продукт Версии
.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