C# Class FarleyFile.DataSerializerWithProtoBuf

Copied from Lokad.CQRS
Inheritance: IDataSerializer
Afficher le fichier Open project: abdullin/Farleyfile

Méthodes publiques

Méthode 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

Méthode Description
InitIdentityTree ( ) : void

Method Details

DataSerializerWithProtoBuf() public méthode

public DataSerializerWithProtoBuf ( ICollection knownTypes ) : System
knownTypes ICollection
Résultat System

Deserialize() public méthode

public Deserialize ( Stream source, Type type ) : object
source Stream
type System.Type
Résultat object

Serialize() public méthode

public Serialize ( object instance, Stream destination ) : void
instance object
destination Stream
Résultat void

TryGetContractNameByType() public méthode

public TryGetContractNameByType ( Type messageType, string &contractName ) : bool
messageType System.Type
contractName string
Résultat bool

TryGetContractTypeByName() public méthode

public TryGetContractTypeByName ( string contractName, Type &contractType ) : bool
contractName string
contractType System.Type
Résultat bool