C# Class PlainTextFormatterSample.Formatters.PlainTextFormatter

Inheritance: System.Net.Http.Formatting.BufferedMediaTypeFormatter
Afficher le fichier Open project: tugberkugurlu/ProWebAPI.Samples

Méthodes publiques

Méthode Description
CanReadType ( Type type ) : bool
CanWriteType ( Type type ) : bool
PlainTextFormatter ( ) : System
ReadFromStream ( Type type, Stream stream, HttpContent content, IFormatterLogger formatterLogger ) : object
WriteToStream ( Type type, object value, Stream stream, HttpContent content ) : 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

PlainTextFormatter() public méthode

public PlainTextFormatter ( ) : System
Résultat System

ReadFromStream() public méthode

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

WriteToStream() public méthode

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