C# Класс Rock.Utility.RockJsonMediaTypeFormatter

Наследование: System.Net.Http.Formatting.JsonMediaTypeFormatter
Показать файл Открыть проект

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