C# Class UtilJsonApiSerializer.Serialization.JsonApiFormatter

Inheritance: System.Net.Http.Formatting.BufferedMediaTypeFormatter
显示文件 Open project: FrontlineEducation/Util-JsonApiSerializer Class Usage Examples

Public Methods

Method Description
CanReadType ( Type type ) : bool
CanWriteType ( Type type ) : bool
JsonApiFormatter ( Configuration cfg, JsonSerializer jsonSerializer ) : System
ReadFromStream ( Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger ) : object
WriteToStream ( Type type, object value, Stream writeStream, HttpContent content ) : void

Private Methods

Method Description
ValidateUpdateDocument ( UpdateDocument updateDocument ) : void

Method Details

CanReadType() public method

public CanReadType ( Type type ) : bool
type System.Type
return bool

CanWriteType() public method

public CanWriteType ( Type type ) : bool
type System.Type
return bool

JsonApiFormatter() public method

public JsonApiFormatter ( Configuration cfg, JsonSerializer jsonSerializer ) : System
cfg Configuration
jsonSerializer Newtonsoft.Json.JsonSerializer
return System

ReadFromStream() public method

public ReadFromStream ( Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger ) : object
type System.Type
readStream Stream
content System.Net.Http.HttpContent
formatterLogger IFormatterLogger
return object

WriteToStream() public method

public WriteToStream ( Type type, object value, Stream writeStream, HttpContent content ) : void
type System.Type
value object
writeStream Stream
content System.Net.Http.HttpContent
return void