Interface ISerializer
Interface used to abstract over serializers used for persistence of state (checkpoints, transaction logs, etc.).
Namespace: Reaqtor.QueryEngine
Assembly: Reaqtor.QueryEngine.Interfaces.dll
Syntax
public interface ISerializer
Properties
Name
Gets the name tag of the serializer.
Declaration
string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Version
Gets the version of the serializer.
Declaration
Version Version { get; }
Property Value
Type | Description |
---|---|
System.Version |
Methods
Deserialize(Type, Stream)
Deserializes a value of the specified type from the specified stream.
Declaration
object Deserialize(Type type, Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type of the value to deserialize. |
System.IO.Stream | stream | The stream to deserialize from. |
Returns
Type | Description |
---|---|
System.Object | The deserialized value. |
Deserialize<T>(Stream)
Deserializes a value of the specified type from the specified stream.
Declaration
T Deserialize<T>(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | The stream to deserialize from. |
Returns
Type | Description |
---|---|
T | The deserialized value. |
Type Parameters
Name | Description |
---|---|
T | The type of the value to deserialize. |
Serialize(Object, Type, Stream)
Serializes a value of the specified type to the specified stream.
Declaration
void Serialize(object value, Type type, Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value to serialize. |
System.Type | type | The type of the value to serialize. |
System.IO.Stream | stream | The stream to serialize to. |
Serialize<T>(T, Stream)
Serializes a value of the specified type to the specified stream.
Declaration
void Serialize<T>(T value, Stream stream)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value to serialize. |
System.IO.Stream | stream | The stream to serialize to. |
Type Parameters
Name | Description |
---|---|
T | The type of the value to serialize. |