C# Class NJsonApi.Serialization.JsonApiFormatter

Inheritance: System.Net.Http.Formatting.BufferedMediaTypeFormatter
Afficher le fichier Open project: jacek-gorgon/NJsonApi Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
ValidateUpdateDocument ( NJsonApi.Serialization.UpdateDocument updateDocument ) : void

Method Details

CanReadType() public méthode

public CanReadType ( Type type ) : bool
type System.Type
Résultat bool

CanWriteType() public méthode

public CanWriteType ( Type type ) : bool
type System.Type
Résultat bool

JsonApiFormatter() public méthode

public JsonApiFormatter ( Configuration cfg, JsonSerializer jsonSerializer ) : System
cfg Configuration
jsonSerializer Newtonsoft.Json.JsonSerializer
Résultat System

ReadFromStream() public méthode

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

WriteToStream() public méthode

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