Stormancer.ISerializer Interface Reference

Contract for the binary serializers used by Stormancer applications. More...

Inherited by Stormancer.Infrastructure.MsgPackSerializer.

Public Member Functions

void Serialize< T > (T data, Stream stream)
 Serialize an object into a stream. More...
 
Deserialize< T > (Stream stream)
 Deserialize an object from a stream. More...
 

Properties

string Name [get]
 The serializer format. More...
 

Detailed Description

Contract for the binary serializers used by Stormancer applications.

Implement this interface if you want to replace the default Stormancer serializer with your own.

In this case, you must use the same serializer on your clients and server application.

Member Function Documentation

◆ Deserialize< T >()

T Stormancer.ISerializer.Deserialize< T > ( Stream  stream)

Deserialize an object from a stream.

Template Parameters
TThe type of the object to deserialize.
Parameters
streamThe input stream.
Returns
A T instance deserialized from the stream.

◆ Serialize< T >()

void Stormancer.ISerializer.Serialize< T > ( data,
Stream  stream 
)

Serialize an object into a stream.

Template Parameters
TThe type of the object to serialize.
Parameters
dataThe object to serialize.
streamThe output stream.

Property Documentation

◆ Name

string Stormancer.ISerializer.Name
get

The serializer format.


The documentation for this interface was generated from the following file:
  • Stormancer.Core/ISerializer.cs