C# Class FarleyFile.DataSerializerWithProtoBuf

Copied from Lokad.CQRS
Inheritance: IDataSerializer
Datei anzeigen Open project: abdullin/Farleyfile

Public Methods

Method Description
DataSerializerWithProtoBuf ( ICollection knownTypes ) : System
Deserialize ( Stream source, Type type ) : object
Serialize ( object instance, Stream destination ) : void
TryGetContractNameByType ( Type messageType, string &contractName ) : bool
TryGetContractTypeByName ( string contractName, Type &contractType ) : bool

Private Methods

Method Description
InitIdentityTree ( ) : void

Method Details

DataSerializerWithProtoBuf() public method

public DataSerializerWithProtoBuf ( ICollection knownTypes ) : System
knownTypes ICollection
return System

Deserialize() public method

public Deserialize ( Stream source, Type type ) : object
source Stream
type System.Type
return object

Serialize() public method

public Serialize ( object instance, Stream destination ) : void
instance object
destination Stream
return void

TryGetContractNameByType() public method

public TryGetContractNameByType ( Type messageType, string &contractName ) : bool
messageType System.Type
contractName string
return bool

TryGetContractTypeByName() public method

public TryGetContractTypeByName ( string contractName, Type &contractType ) : bool
contractName string
contractType System.Type
return bool