C# 클래스 Hyper.Http.Formatting.JsonMediaTypeFormatter

HyperJsonMediaTypeFormatter class.
상속: System.Net.Http.Formatting.MediaTypeFormatter
파일 보기 프로젝트 열기: tmitchel2/Hyper

공개 메소드들

메소드 설명
CanReadType ( Type type ) : bool

Queries whether this T:System.Net.Http.Formatting.MediaTypeFormatter can deserializean object of the specified type.

CanWriteType ( Type type ) : bool

Queries whether this T:System.Net.Http.Formatting.MediaTypeFormatter can serializean object of the specified type.

ReadFromStreamAsync ( Type type, Stream readStream, System content, IFormatterLogger formatterLogger ) : Task

Asynchronously deserializes an object of the specified type.

WriteToStreamAsync ( Type type, object value, Stream writeStream, System content, System.Net.TransportContext transportContext ) : System.Threading.Tasks.Task

Asynchronously writes an object of the specified type.

메소드 상세

CanReadType() 공개 메소드

Queries whether this T:System.Net.Http.Formatting.MediaTypeFormatter can deserializean object of the specified type.
public CanReadType ( Type type ) : bool
type System.Type The type to deserialize.
리턴 bool

CanWriteType() 공개 메소드

Queries whether this T:System.Net.Http.Formatting.MediaTypeFormatter can serializean object of the specified type.
public CanWriteType ( Type type ) : bool
type System.Type The type to serialize.
리턴 bool

ReadFromStreamAsync() 공개 메소드

Asynchronously deserializes an object of the specified type.
public ReadFromStreamAsync ( Type type, Stream readStream, System content, IFormatterLogger formatterLogger ) : Task
type System.Type The type of the object to deserialize.
readStream Stream The to read.
content System The , if available. It may be null.
formatterLogger IFormatterLogger The to log events to.
리턴 Task

WriteToStreamAsync() 공개 메소드

Asynchronously writes an object of the specified type.
public WriteToStreamAsync ( Type type, object value, Stream writeStream, System content, System.Net.TransportContext transportContext ) : System.Threading.Tasks.Task
type System.Type The type of the object to write.
value object The object value to write. It may be null.
writeStream Stream The to which to write.
content System The if available. It may be null.
transportContext System.Net.TransportContext The if available. It may be null.
리턴 System.Threading.Tasks.Task