WebHttpBehavior.GetRequestClientFormatter Metod

Definition

Hämtar begärandeformaterare på klienten för den angivna tjänståtgärden och slutpunkten.

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

Parametrar

operationDescription
OperationDescription

Tjänståtgärden.

endpoint
ServiceEndpoint

Tjänstens slutpunkt.

Returer

En IClientMessageFormatter referens till begärandeformaterare på klienten för den angivna åtgärden och slutpunkten.

Kommentarer

Det här är en utökningspunkt som härledda beteenden kan använda för att ange sin egen implementering av IClientMessageFormatter som anropas för att konvertera indataparametrarna för tjänståtgärdsanropet till ett begärandemeddelande. Parametrar som anges i tjänståtgärden UriTemplate måste serialiseras till To URI för begärandemeddelandet och andra parametrar måste serialiseras till brödtexten i begärandemeddelandet.

Gäller för