Table of Contents

Interface IMessageSerializer

Namespace
AWS.Messaging.Serialization
Assembly
AWS.Messaging.dll

Supports serialization and deserialization of domain-specific application messages.

public interface IMessageSerializer

Methods

Deserialize(string, Type)

Deserializes the raw string message into the .NET type.

object Deserialize(string message, Type deserializedType)

Parameters

message string

The string message that will be deserialized.

deserializedType Type

The .NET type that represents the deserialized message.

Returns

object

Deserialize<T>(string)

Deserializes the raw string message into the .NET type.

T Deserialize<T>(string message)

Parameters

message string

The string message that will be deserialized.

Returns

T

Type Parameters

T

The .NET type that represents the deserialized message.

Serialize(object)

Serializes the .NET message object into a string and specifies the content type of the serialized data.

MessageSerializerResults Serialize(object message)

Parameters

message object

The .NET object that will be serialized.

Returns

MessageSerializerResults

A MessageSerializerResults containing the serialized string and its content type.