Class OAuthJsonContext
- Namespace
- MailFathom.Common.OAuth
- Assembly
- MailFathom.Common.dll
Serializes the OAuth endpoint responses without reflection.
[JsonSerializable(typeof(OAuthTokenResponse))]
[JsonSerializable(typeof(OAuthDeviceAuthorizationResponse))]
[JsonSourceGenerationOptions(PropertyNameCaseInsensitive = true)]
public sealed class OAuthJsonContext : JsonSerializerContext, IJsonTypeInfoResolver
- Inheritance
-
OAuthJsonContext
- Implements
- Inherited Members
Constructors
- OAuthJsonContext(JsonSerializerOptions)
Creates an instance of JsonSerializerContext and binds it with the indicated JsonSerializerOptions.
Properties
- Default
The default JsonSerializerContext associated with a default JsonSerializerOptions instance.
- GeneratedSerializerOptions
The source-generated options associated with this context.
- Int32
Defines the source generated JSON serialization contract metadata for a given type.
- NullableInt32
Defines the source generated JSON serialization contract metadata for a given type.
- OAuthDeviceAuthorizationResponse
Defines the source generated JSON serialization contract metadata for a given type.
- OAuthTokenResponse
Defines the source generated JSON serialization contract metadata for a given type.
- String
Defines the source generated JSON serialization contract metadata for a given type.
Methods
- GetTypeInfo(Type)
Gets metadata for the specified type.