C# Class Eventing.EventSerializer

Inheritance: IEventSerializer
Show file Open project: phillipknauss/CqrsSiteEngine Class Usage Examples

Public Methods

Method Description
Deserialize ( Stream sourceStream, Type type ) : object
EventSerializer ( IEnumerable knownEventTypes ) : System
GetContentType ( string contractName ) : Type
Serialize ( object instance, Type type, Stream destinationStream ) : void

Method Details

Deserialize() public method

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

EventSerializer() public method

public EventSerializer ( IEnumerable knownEventTypes ) : System
knownEventTypes IEnumerable
return System

GetContentType() public method

public GetContentType ( string contractName ) : Type
contractName string
return System.Type

Serialize() public method

public Serialize ( object instance, Type type, Stream destinationStream ) : void
instance object
type System.Type
destinationStream Stream
return void