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
optionsJsonSerializerOptions
Properties
ClientCredentialsTokenResponse
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<ClientCredentialsTokenResponse> ClientCredentialsTokenResponse { get; }
Property Value
ConnectionIdentity
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<ConnectionIdentity> ConnectionIdentity { get; }
Property Value
ConnectionPurpose
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<ConnectionPurpose> ConnectionPurpose { get; }
Property Value
DateTimeOffset
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<DateTimeOffset> DateTimeOffset { get; }
Property Value
Default
The default JsonSerializerContext associated with a default JsonSerializerOptions instance.
public static ConnectionResolutionJsonSerializerContext Default { get; }
Property Value
GeneratedSerializerOptions
The source-generated options associated with this context.
protected override JsonSerializerOptions? GeneratedSerializerOptions { get; }
Property Value
HttpConnectionRequest
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<HttpConnectionRequest> HttpConnectionRequest { get; }
Property Value
IReadOnlyDictionaryStringString
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<IReadOnlyDictionary<string, string>> IReadOnlyDictionaryStringString { get; }
Property Value
Int64
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<long> Int64 { get; }
Property Value
NullableDateTimeOffset
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<DateTimeOffset?> NullableDateTimeOffset { get; }
Property Value
NullableInt64
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<long?> NullableInt64 { get; }
Property Value
ResolvedConnection
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<ResolvedConnection> ResolvedConnection { get; }
Property Value
String
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<string> String { get; }
Property Value
Methods
GetTypeInfo(Type)
public override JsonTypeInfo? GetTypeInfo(Type type)
Parameters
typeType