WebHttpBehavior.GetRequestClientFormatter Метод

Определение

Возвращает модуль форматирования запроса в клиенте для заданной операции службы и конечной точки.

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

Параметры

operationDescription
OperationDescription

Операция службы.

endpoint
ServiceEndpoint

Конечная точка службы.

Возвращаемое значение

Ссылка IClientMessageFormatter на модуль форматирования запроса в клиенте для заданной операции и конечной точки.

Комментарии

Это точка расширяемости, которую может использовать производное поведение, чтобы предоставить свою собственную реализацию IClientMessageFormatter, которая вызывается для преобразования входных параметров вызова операции службы в сообщение запроса. Параметры, заданные в UriTemplate операции службы, должны быть сериализованы в универсальный код ресурса (URI) To сообщения запроса, а другие параметры должны быть сериализованы в текст сообщения запроса.

Применяется к