C# Class NJsonApi.Serialization.JsonApiFormatter

Inheritance: System.Net.Http.Formatting.BufferedMediaTypeFormatter
Show file Open project: jacek-gorgon/NJsonApi 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 ( NJsonApi.Serialization.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