XmlSerializerFormat
Use .NET XmlSerializer instead of .NET XML DataContract Serializer
Assembly: ServiceStack.dll
View Source
Declaration
public class XmlSerializerFormat : IPlugin
Methods
Serialize(IRequest, Object, Stream)
View Source
Declaration
public static void Serialize(IRequest req, object response, Stream stream)
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
System.Object | response |
System.IO.Stream | stream |
Deserialize(Type, Stream)
View Source
Declaration
public static object Deserialize(Type type, Stream stream)
Returns
System.Object
Parameters
Type | Name |
---|---|
System.Type | type |
System.IO.Stream | stream |
Register(IAppHost)
View Source
Declaration
public void Register(IAppHost appHost)
Parameters
Type | Name |
---|---|
ServiceStack.IAppHost | appHost |