Class OpenIddictConverter
- Namespace
- OpenIddict.Abstractions
- Assembly
- OpenIddict.Abstractions.dll
Represents a JSON converter able to convert OpenIddict primitives.
public sealed class OpenIddictConverter : JsonConverter<OpenIddictMessage>
- Inheritance
-
OpenIddictConverter
- Inherited Members
Constructors
OpenIddictConverter()
public OpenIddictConverter()
Methods
CanConvert(Type)
Determines whether the specified type is supported by this converter.
public override bool CanConvert(Type typeToConvert)
Parameters
typeToConvert
TypeThe type to convert.
Returns
Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
Deserializes an OpenIddictMessage instance.
public override OpenIddictMessage Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
reader
Utf8JsonReaderThe JSON reader.
typeToConvert
TypeThe type of the deserialized instance.
options
JsonSerializerOptionsThe JSON serializer options.
Returns
- OpenIddictMessage
The deserialized OpenIddictMessage instance.
Write(Utf8JsonWriter, OpenIddictMessage, JsonSerializerOptions)
Serializes an OpenIddict primitive.
public override void Write(Utf8JsonWriter writer, OpenIddictMessage value, JsonSerializerOptions options)
Parameters
writer
Utf8JsonWriterThe JSON writer.
value
OpenIddictMessageThe instance.
options
JsonSerializerOptionsThe JSON serializer options.