C# 클래스 Saule.Http.JsonApiMediaTypeFormatter

Custom media type formatter for Json Api (1.0) responses and requests.
상속: System.Net.Http.Formatting.MediaTypeFormatter
파일 보기 프로젝트 열기: joukevandermaas/saule 1 사용 예제들

공개 메소드들

메소드 설명
CanReadType ( Type type ) : bool
CanWriteType ( Type type ) : bool
GetPerRequestFormatterInstance ( Type type, HttpRequestMessage request, MediaTypeHeaderValue mediaType ) : System.Net.Http.Formatting.MediaTypeFormatter
ReadFromStreamAsync ( Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger ) : Task
WriteToStreamAsync ( Type type, object value, Stream writeStream, HttpContent content, System.Net.TransportContext transportContext ) : System.Threading.Tasks.Task

비공개 메소드들

메소드 설명
JsonApiMediaTypeFormatter ( ) : System
JsonApiMediaTypeFormatter ( HttpRequestMessage request, Saule.Http.JsonApiConfiguration config ) : System
JsonApiMediaTypeFormatter ( IUrlPathBuilder urlBuilder ) : System
JsonApiMediaTypeFormatter ( Saule.Http.JsonApiConfiguration config ) : System
WriteJsonToStream ( JToken json, Stream stream ) : System.Threading.Tasks.Task

메소드 상세

CanReadType() 공개 메소드

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

CanWriteType() 공개 메소드

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

GetPerRequestFormatterInstance() 공개 메소드

public GetPerRequestFormatterInstance ( Type type, HttpRequestMessage request, MediaTypeHeaderValue mediaType ) : System.Net.Http.Formatting.MediaTypeFormatter
type System.Type
request System.Net.Http.HttpRequestMessage
mediaType System.Net.Http.Headers.MediaTypeHeaderValue
리턴 System.Net.Http.Formatting.MediaTypeFormatter

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 ) : System.Threading.Tasks.Task
type System.Type
value object
writeStream Stream
content System.Net.Http.HttpContent
transportContext System.Net.TransportContext
리턴 System.Threading.Tasks.Task