Прочитај на енглеском Уреди

Делите путем


IDispatchMessageFormatter Interface

Definition

Defines methods that deserialize request messages and serialize response messages in a service application.

C#
public interface IDispatchMessageFormatter

Examples

For a complete example, see Operation Formatter and Operation Selector.

Remarks

Implement the IDispatchMessageFormatter interface to create a formatter extension that controls the serialization of parameters into a message and the deserialization from a message into parameters in a service application. To insert the custom formatter into the service application, assign the IDispatchMessageFormatter object to the Formatter property using a behavior.

Methods

DeserializeRequest(Message, Object[])

Deserializes a message into an array of parameters.

SerializeReply(MessageVersion, Object[], Object)

Serializes a reply message from a specified message version, array of parameters, and a return value.

Applies to

Производ Верзије
.NET Framework 3.0, 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