Redigera

Dela via


WebHttpBehavior.GetRequestDispatchFormatter Method

Definition

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

protected:
 virtual System::ServiceModel::Dispatcher::IDispatchMessageFormatter ^ GetRequestDispatchFormatter(System::ServiceModel::Description::OperationDescription ^ operationDescription, System::ServiceModel::Description::ServiceEndpoint ^ endpoint);
protected virtual System.ServiceModel.Dispatcher.IDispatchMessageFormatter GetRequestDispatchFormatter (System.ServiceModel.Description.OperationDescription operationDescription, System.ServiceModel.Description.ServiceEndpoint endpoint);
abstract member GetRequestDispatchFormatter : System.ServiceModel.Description.OperationDescription * System.ServiceModel.Description.ServiceEndpoint -> System.ServiceModel.Dispatcher.IDispatchMessageFormatter
override this.GetRequestDispatchFormatter : System.ServiceModel.Description.OperationDescription * System.ServiceModel.Description.ServiceEndpoint -> System.ServiceModel.Dispatcher.IDispatchMessageFormatter
Protected Overridable Function GetRequestDispatchFormatter (operationDescription As OperationDescription, endpoint As ServiceEndpoint) As IDispatchMessageFormatter

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