C# Class WebApiConneg.Formatters.PlainTextFormatter

Inheritance: System.Net.Http.Formatting.BufferedMediaTypeFormatter
Show file Open project: tugberkugurlu/ProWebAPI.Samples

Public Methods

Method 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 method

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

CanWriteType() public method

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

PlainTextFormatter() public method

public PlainTextFormatter ( ) : System
return System

ReadFromStream() public method

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

WriteToStream() public method

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