Table of Contents

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 Type

The type to convert.

Returns

bool

true if the type is supported, false otherwise.

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Deserializes an OpenIddictMessage instance.

public override OpenIddictMessage Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)

Parameters

reader Utf8JsonReader

The JSON reader.

typeToConvert Type

The type of the deserialized instance.

options JsonSerializerOptions

The 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 Utf8JsonWriter

The JSON writer.

value OpenIddictMessage

The instance.

options JsonSerializerOptions

The JSON serializer options.