C# Class ServiceStack.Wire.WireFormat

Inheritance: IPlugin, IWirePlugin
Afficher le fichier Open project: ServiceStack/ServiceStack

Méthodes publiques

Свойство Type Description
WireSerializer Serializer

Méthodes publiques

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

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

HandleException() public static méthode

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
Résultat object

Register() public méthode

public Register ( IAppHost appHost ) : void
appHost IAppHost
Résultat void

Serialize() public static méthode

public static Serialize ( IRequest requestContext, object dto, Stream outputStream ) : void
requestContext IRequest
dto object
outputStream Stream
Résultat void

Serialize() public static méthode

public static Serialize ( object dto, Stream outputStream ) : void
dto object
outputStream Stream
Résultat void

Property Details

WireSerializer public_oe static_oe property

public static Serializer WireSerializer
Résultat Serializer