C# Class ServiceStack.Wire.WireFormat

Inheritance: IPlugin, IWirePlugin
显示文件 Open project: ServiceStack/ServiceStack

Public Properties

Property Type Description
WireSerializer Serializer

Public Methods

Method Description
Deserialize ( Type type, Stream fromStream ) : object
HandleException ( Exception ex, Type type ) : object

MsgPack throws an exception for empty DTO's - normalizing the behavior to follow other types and return an empty instance.

Register ( IAppHost appHost ) : void
Serialize ( IRequest requestContext, object dto, Stream outputStream ) : void
Serialize ( object dto, Stream outputStream ) : void

Method Details

Deserialize() public static method

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

HandleException() public static method

MsgPack throws an exception for empty DTO's - normalizing the behavior to follow other types and return an empty instance.
public static HandleException ( Exception ex, Type type ) : object
ex System.Exception
type System.Type
return object

Register() public method

public Register ( IAppHost appHost ) : void
appHost IAppHost
return void

Serialize() public static method

public static Serialize ( IRequest requestContext, object dto, Stream outputStream ) : void
requestContext IRequest
dto object
outputStream Stream
return void

Serialize() public static method

public static Serialize ( object dto, Stream outputStream ) : void
dto object
outputStream Stream
return void

Property Details

WireSerializer public_oe static_oe property

public static Serializer WireSerializer
return Serializer