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

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


WebHttpBehavior.GetReplyDispatchFormatter Method

Definition

Gets the reply formatter on the service for the specified endpoint and service operation.

C#
protected virtual System.ServiceModel.Dispatcher.IDispatchMessageFormatter GetReplyDispatchFormatter(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 reply 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 convert the return value/out parameters of the service operation to a response 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