C# Class Rock.Utility.RockJsonMediaTypeFormatter

Inheritance: System.Net.Http.Formatting.JsonMediaTypeFormatter
Mostra file Open project: NewSpring/Rock

Private Properties

Property Type Description
FilterAttributes void

Public Methods

Method Description
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.

Private Methods

Method Description
FilterAttributes ( Data rockContext, IEnumerable items, Rock person ) : void

Filters the attributes.

Method Details

CreateJsonWriter() public method

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.
return Newtonsoft.Json.JsonWriter

GetPerRequestFormatterInstance() public method

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.
return System.Net.Http.Formatting.MediaTypeFormatter

WriteToStream() public method

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.
return void