C# 클래스 ScriptCs.WebApi.Formatter

상속: System.Net.Http.Formatting.MediaTypeFormatter
파일 보기 프로젝트 열기: scriptcs-contrib/scriptcs-webapi 1 사용 예제들

공개 메소드들

메소드 설명
CanReadType ( Type type ) : bool
CanWriteType ( Type type ) : bool
Formatter ( bool>.Func canReadType, bool>.Func canWriteType, Func readFromStream, Task>.Func writeToStream ) : System
ReadFromStreamAsync ( Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger ) : Task
WriteToStreamAsync ( Type type, object value, Stream writeStream, HttpContent content, System.Net.TransportContext transportContext, CancellationToken cancellationToken ) : Task

메소드 상세

CanReadType() 공개 메소드

public CanReadType ( Type type ) : bool
type System.Type
리턴 bool

CanWriteType() 공개 메소드

public CanWriteType ( Type type ) : bool
type System.Type
리턴 bool

Formatter() 공개 메소드

public Formatter ( bool>.Func canReadType, bool>.Func canWriteType, Func readFromStream, Task>.Func writeToStream ) : System
canReadType bool>.Func
canWriteType bool>.Func
readFromStream Func
writeToStream Task>.Func
리턴 System

ReadFromStreamAsync() 공개 메소드

public ReadFromStreamAsync ( Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger ) : Task
type System.Type
readStream Stream
content System.Net.Http.HttpContent
formatterLogger IFormatterLogger
리턴 Task

WriteToStreamAsync() 공개 메소드

public WriteToStreamAsync ( Type type, object value, Stream writeStream, HttpContent content, System.Net.TransportContext transportContext, CancellationToken cancellationToken ) : Task
type System.Type
value object
writeStream Stream
content System.Net.Http.HttpContent
transportContext System.Net.TransportContext
cancellationToken System.Threading.CancellationToken
리턴 Task