C# Class Owin.Scim.Serialization.ResourceJsonConverter

Inheritance: Newtonsoft.Json.JsonConverter
Mostra file Open project: PowerDMS/Owin.Scim

Public Methods

Method Description
CanConvert ( Type objectType ) : bool

Determines whether this instance can convert the specified object type.

ReadJson ( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) : object

Reads the JSON representation of the object.

ResourceJsonConverter ( ScimServerConfiguration serverConfiguration, JsonSerializer serializer ) : System

Initializes a new instance of the ResourceJsonConverter class.

WriteJson ( JsonWriter writer, object value, JsonSerializer serializer ) : void

Writes the JSON representation of the object.

Private Methods

Method Description
FindExtensionType ( Type resourceType, string extensionSchemaIdentifier ) : Type

Method Details

CanConvert() public method

Determines whether this instance can convert the specified object type.
public CanConvert ( Type objectType ) : bool
objectType Type Type of the object.
return bool

ReadJson() public method

Reads the JSON representation of the object.
/// In order for Owin.Scim to support resource extensions, the serialization /// process is uniquely designed. Therefore, your Resource type objects must /// contain at mimimum, a default empty constructor (which may be private). ///
public ReadJson ( JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer ) : object
reader Newtonsoft.Json.JsonReader The to read from.
objectType Type Type of the object.
existingValue object The existing value of object being read.
serializer Newtonsoft.Json.JsonSerializer The calling serializer.
return object

ResourceJsonConverter() public method

Initializes a new instance of the ResourceJsonConverter class.
public ResourceJsonConverter ( ScimServerConfiguration serverConfiguration, JsonSerializer serializer ) : System
serverConfiguration ScimServerConfiguration The server configuration.
serializer Newtonsoft.Json.JsonSerializer The serializer to use.
return System

WriteJson() public method

Writes the JSON representation of the object.
public WriteJson ( JsonWriter writer, object value, JsonSerializer serializer ) : void
writer Newtonsoft.Json.JsonWriter The to write to.
value object The value.
serializer Newtonsoft.Json.JsonSerializer The calling serializer.
return void