Skip to main content

ProtoBufFormat

Assembly: ServiceStack.ProtoBuf.dll
View Source
Declaration
public class ProtoBufFormat : IPlugin, IProtoBufPlugin, IHasStringId, IHasId<string>

Properties

Id

View Source
Declaration
public string Id { get; set; }

Model

View Source
Declaration
public static RuntimeTypeModel Model { get; }

Methods

Register(IAppHost)

View Source
Declaration
public void Register(IAppHost appHost)
Parameters
TypeName
ServiceStack.IAppHostappHost

Serialize(IRequest, Object, Stream)

View Source
Declaration
public static void Serialize(IRequest requestContext, object dto, Stream outputStream)
Parameters
TypeName
ServiceStack.Web.IRequestrequestContext
System.Objectdto
System.IO.StreamoutputStream

Serialize(Object, Stream)

View Source
Declaration
public static void Serialize(object dto, Stream outputStream)
Parameters
TypeName
System.Objectdto
System.IO.StreamoutputStream

Deserialize<T>(Stream)

View Source
Declaration
public static T Deserialize<T>(Stream fromStream)
Returns

<T>

Parameters
TypeName
System.IO.StreamfromStream
Type Parameters
  • T

Deserialize(Type, Stream)

View Source
Declaration
public static object Deserialize(Type type, Stream fromStream)
Returns

System.Object

Parameters
TypeName
System.Typetype
System.IO.StreamfromStream

GetProto(Type)

View Source
Declaration
public string GetProto(Type type)
Returns

System.String

Parameters
TypeName
System.Typetype

Implements