Class ConnectionResolutionJsonSerializerContext

Namespace
Cratis.Arc.Connections
Assembly
Cratis.Arc.Core.dll

Represents the source-generated JSON serialization for the HTTP connection resolver contract.

[JsonSourceGenerationOptions(PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase, PropertyNameCaseInsensitive = true, UseStringEnumConverter = true, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull)]
[JsonSerializable(typeof(HttpConnectionRequest))]
[JsonSerializable(typeof(ResolvedConnection))]
[JsonSerializable(typeof(ClientCredentialsTokenResponse))]
public class ConnectionResolutionJsonSerializerContext : JsonSerializerContext, IJsonTypeInfoResolver
Inheritance
ConnectionResolutionJsonSerializerContext
Implements
Inherited Members
Extension Methods

Constructors

ConnectionResolutionJsonSerializerContext()

public ConnectionResolutionJsonSerializerContext()

ConnectionResolutionJsonSerializerContext(JsonSerializerOptions)

public ConnectionResolutionJsonSerializerContext(JsonSerializerOptions options)

Parameters

options JsonSerializerOptions

Properties

ClientCredentialsTokenResponse

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<ClientCredentialsTokenResponse> ClientCredentialsTokenResponse { get; }

Property Value

JsonTypeInfo<ClientCredentialsTokenResponse>

ConnectionIdentity

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<ConnectionIdentity> ConnectionIdentity { get; }

Property Value

JsonTypeInfo<ConnectionIdentity>

ConnectionPurpose

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<ConnectionPurpose> ConnectionPurpose { get; }

Property Value

JsonTypeInfo<ConnectionPurpose>

DateTimeOffset

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<DateTimeOffset> DateTimeOffset { get; }

Property Value

JsonTypeInfo<DateTimeOffset>

Default

The default JsonSerializerContext associated with a default JsonSerializerOptions instance.

public static ConnectionResolutionJsonSerializerContext Default { get; }

Property Value

ConnectionResolutionJsonSerializerContext

GeneratedSerializerOptions

The source-generated options associated with this context.

protected override JsonSerializerOptions? GeneratedSerializerOptions { get; }

Property Value

JsonSerializerOptions

HttpConnectionRequest

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<HttpConnectionRequest> HttpConnectionRequest { get; }

Property Value

JsonTypeInfo<HttpConnectionRequest>

IReadOnlyDictionaryStringString

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<IReadOnlyDictionary<string, string>> IReadOnlyDictionaryStringString { get; }

Property Value

JsonTypeInfo<IReadOnlyDictionary<string, string>>

Int64

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<long> Int64 { get; }

Property Value

JsonTypeInfo<long>

NullableDateTimeOffset

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<DateTimeOffset?> NullableDateTimeOffset { get; }

Property Value

JsonTypeInfo<DateTimeOffset?>

NullableInt64

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<long?> NullableInt64 { get; }

Property Value

JsonTypeInfo<long?>

ResolvedConnection

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<ResolvedConnection> ResolvedConnection { get; }

Property Value

JsonTypeInfo<ResolvedConnection>

String

Defines the source generated JSON serialization contract metadata for a given type.

public JsonTypeInfo<string> String { get; }

Property Value

JsonTypeInfo<string>

Methods

GetTypeInfo(Type)

public override JsonTypeInfo? GetTypeInfo(Type type)

Parameters

type Type

Returns

JsonTypeInfo