C# Class UlteriusServer.TerminalServer.Messaging.Serialization.DefaultEventSerializator

Inheritance: IEventSerializator
Mostrar archivo Open project: Ulterius/server

Public Methods

Method Description
Deserialize ( System.Guid connectionId, Stream source, Type &type ) : IConnectionRequest
Serialize ( System.Guid connectionId, IConnectionEvent eventObject, Stream output ) : void

Private Methods

Method Description
Build ( string typeName, Newtonsoft.Json.Linq.JObject json, Type &type, UserConnection user = null ) : IConnectionRequest
ReadFully ( Stream input ) : byte[]

Method Details

Deserialize() public method

public Deserialize ( System.Guid connectionId, Stream source, Type &type ) : IConnectionRequest
connectionId System.Guid
source Stream
type System.Type
return IConnectionRequest

Serialize() public method

public Serialize ( System.Guid connectionId, IConnectionEvent eventObject, Stream output ) : void
connectionId System.Guid
eventObject IConnectionEvent
output Stream
return void