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
stringThe string message that will be deserialized.
deserializedType
TypeThe .NET type that represents the deserialized message.
Returns
Deserialize<T>(string)
Deserializes the raw string message into the .NET type.
T Deserialize<T>(string message)
Parameters
message
stringThe 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
objectThe .NET object that will be serialized.
Returns
- MessageSerializerResults
A MessageSerializerResults containing the serialized string and its content type.