Class Serializer
public class Serializer : IJsonSerializer
- Inheritance
-
Serializer
- Implements
- Inherited Members
- Extension Methods
Constructors
Serializer()
public Serializer()
Methods
Deserialize<T>(string)
Returns a object deserialized from the input string.
public T Deserialize<T>(string value)
Parameters
valuestring
Returns
- T
Type Parameters
T
Deserialize<T>(string, Type, bool)
Returns a object of the desired type, deserialized from the input string.
public T Deserialize<T>(string value, Type type, bool ignoreAttributes)
Parameters
Returns
- T
Type Parameters
T
GetClassName(Type)
Returns the assembly-qualified class name without the version, culture, and public key token.
public string GetClassName(Type type)
Parameters
typeType
Returns
Serialize(object, string[], bool)
Exclude the aggregate identifier/version and the event time/user from the serialized event. These properties are stored in their own discrete columns in the Command table, so we don't need them duplicated in the CommandData column.
public string Serialize(object command, string[] exclusions, bool ignoreAttributes)
Parameters
Returns
SerializeChange(IChange)
Exclude the aggregate identifier/version and the event time/user from the serialized event. These properties are stored in their own discrete columns in the Command table, so we don't need them duplicated in the CommandData column.
public string SerializeChange(IChange command)
Parameters
commandIChange
Returns
SerializeCommand(ICommand)
Exclude the aggregate identifier/version and the event time/user from the serialized event. These properties are stored in their own discrete columns in the Command table, so we don't need them duplicated in the CommandData column.
public string SerializeCommand(ICommand command)
Parameters
commandICommand
Returns
Serialize<T>(T)
Returns the serialized string value for an object of a specific type.
public string Serialize<T>(T value)
Parameters
valueT
Returns
Type Parameters
T