C# Class Rock.Utility.RockJsonMediaTypeFormatter

Inheritance: System.Net.Http.Formatting.JsonMediaTypeFormatter
Afficher le fichier Open project: NewSpring/Rock

Private Properties

Свойство Type Description
FilterAttributes void

Méthodes publiques

Méthode 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

Méthode Description
FilterAttributes ( Data rockContext, IEnumerable items, Rock person ) : void

Filters the attributes.

Method Details

CreateJsonWriter() public méthode

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.
Résultat Newtonsoft.Json.JsonWriter

GetPerRequestFormatterInstance() public méthode

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.
Résultat System.Net.Http.Formatting.MediaTypeFormatter

WriteToStream() public méthode

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.
Résultat void