C# 클래스 Rock.Utility.RockJsonMediaTypeFormatter

상속: System.Net.Http.Formatting.JsonMediaTypeFormatter
파일 보기 프로젝트 열기: NewSpring/Rock

Private Properties

프로퍼티 타입 설명
FilterAttributes void

공개 메소드들

메소드 설명
CreateJsonWriter ( Type type, System writeStream, Encoding effectiveEncoding ) : Newtonsoft.Json.JsonWriter

Called during serialization to get the T:Newtonsoft.Json.JsonWriter.

GetPerRequestFormatterInstance ( Type type, System request, System mediaType ) : System.Net.Http.Formatting.MediaTypeFormatter

Returns a specialized instance of the T:System.Net.Http.Formatting.MediaTypeFormatter that can format a response for the given parameters.

WriteToStream ( Type type, object value, System writeStream, Encoding effectiveEncoding ) : void

Called during serialization to write an object of the specified type to the specified stream.

비공개 메소드들

메소드 설명
FilterAttributes ( Data rockContext, IEnumerable items, Rock person ) : void

Filters the attributes.

메소드 상세

CreateJsonWriter() 공개 메소드

Called during serialization to get the T:Newtonsoft.Json.JsonWriter.
public CreateJsonWriter ( Type type, System writeStream, Encoding effectiveEncoding ) : Newtonsoft.Json.JsonWriter
type System.Type The type of the object to write.
writeStream System The stream to write to.
effectiveEncoding System.Text.Encoding The encoding to use when writing.
리턴 Newtonsoft.Json.JsonWriter

GetPerRequestFormatterInstance() 공개 메소드

Returns a specialized instance of the T:System.Net.Http.Formatting.MediaTypeFormatter that can format a response for the given parameters.
public GetPerRequestFormatterInstance ( Type type, System request, System mediaType ) : System.Net.Http.Formatting.MediaTypeFormatter
type System.Type The type to format.
request System The request.
mediaType System The media type.
리턴 System.Net.Http.Formatting.MediaTypeFormatter

WriteToStream() 공개 메소드

Called during serialization to write an object of the specified type to the specified stream.
public WriteToStream ( Type type, object value, System writeStream, Encoding effectiveEncoding ) : void
type System.Type The type of the object to write.
value object The object to write.
writeStream System The stream to write to.
effectiveEncoding System.Text.Encoding The encoding to use when writing.
리턴 void