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
Type | Name |
---|---|
ServiceStack.IAppHost | appHost |
Serialize(IRequest, Object, Stream)
View Source
Declaration
public static void Serialize(IRequest requestContext, object dto, Stream outputStream)
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | requestContext |
System.Object | dto |
System.IO.Stream | outputStream |
Serialize(Object, Stream)
View Source
Declaration
public static void Serialize(object dto, Stream outputStream)
Parameters
Type | Name |
---|---|
System.Object | dto |
System.IO.Stream | outputStream |
Deserialize<T>(Stream)
View Source
Declaration
public static T Deserialize<T>(Stream fromStream)
Returns
<T>
Parameters
Type | Name |
---|---|
System.IO.Stream | fromStream |
Type Parameters
T
Deserialize(Type, Stream)
View Source
Declaration
public static object Deserialize(Type type, Stream fromStream)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Type | type |
System.IO.Stream | fromStream |
GetProto(Type)
View Source
Declaration
public string GetProto(Type type)
Returns
System.String
Parameters
Type | Name |
---|---|
System.Type | type |