C# Class WebApiContrib.Formatting.ProtoBufFormatter

Inheritance: System.Net.Http.Formatting.MediaTypeFormatter
Afficher le fichier Open project: WebApiContrib/WebApiContrib.Formatting.ProtoBuf Class Usage Examples

Méthodes publiques

Méthode Description
CanReadType ( Type type ) : bool
CanWriteType ( Type type ) : bool
ProtoBufFormatter ( ) : System
ReadFromStreamAsync ( Type type, Stream stream, HttpContent content, IFormatterLogger formatterLogger ) : Task
WriteToStreamAsync ( Type type, object value, Stream stream, HttpContent content, System.Net.TransportContext transportContext ) : System.Threading.Tasks.Task

Private Methods

Méthode Description
CanReadTypeCore ( Type type ) : bool
CreateTypeModel ( ) : ProtoBuf.Meta.RuntimeTypeModel

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

ProtoBufFormatter() public méthode

public ProtoBufFormatter ( ) : System
Résultat System

ReadFromStreamAsync() public méthode

public ReadFromStreamAsync ( Type type, Stream stream, HttpContent content, IFormatterLogger formatterLogger ) : Task
type System.Type
stream Stream
content HttpContent
formatterLogger IFormatterLogger
Résultat Task

WriteToStreamAsync() public méthode

public WriteToStreamAsync ( Type type, object value, Stream stream, HttpContent content, System.Net.TransportContext transportContext ) : System.Threading.Tasks.Task
type System.Type
value object
stream Stream
content HttpContent
transportContext System.Net.TransportContext
Résultat System.Threading.Tasks.Task