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
typeToConvertTypeThe 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
readerUtf8JsonReaderThe JSON reader.
typeToConvertTypeThe type of the deserialized instance.
optionsJsonSerializerOptionsThe 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
writerUtf8JsonWriterThe JSON writer.
valueOpenIddictMessageThe instance.
optionsJsonSerializerOptionsThe JSON serializer options.