Class NetlifySnakeCaseContext

Namespace
Aspire.Hosting
Assembly
IEvangelist.Aspire.Hosting.Netlify.dll
[JsonSourceGenerationOptions(PropertyNamingPolicy = JsonKnownNamingPolicy.SnakeCaseLower, WriteIndented = true)]
[JsonSerializable(typeof(NetlifySite))]
public class NetlifySnakeCaseContext : JsonSerializerContext, IJsonTypeInfoResolver
Inheritance
NetlifySnakeCaseContext
Implements
Inherited Members

Constructors

NetlifySnakeCaseContext()

public NetlifySnakeCaseContext()

NetlifySnakeCaseContext(JsonSerializerOptions)

Creates an instance of JsonSerializerContext and binds it with the indicated JsonSerializerOptions.

public NetlifySnakeCaseContext(JsonSerializerOptions options)

Parameters

options JsonSerializerOptions

The run time provided options for the context instance.

Properties

Boolean

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

public JsonTypeInfo<bool> Boolean { get; }

Property Value

JsonTypeInfo<bool>

Default

The default JsonSerializerContext associated with a default JsonSerializerOptions instance.

public static NetlifySnakeCaseContext Default { get; }

Property Value

NetlifySnakeCaseContext

GeneratedSerializerOptions

The source-generated options associated with this context.

protected override JsonSerializerOptions? GeneratedSerializerOptions { get; }

Property Value

JsonSerializerOptions

Int32

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

public JsonTypeInfo<int> Int32 { get; }

Property Value

JsonTypeInfo<int>

NetlifySite

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

public JsonTypeInfo<NetlifySite> NetlifySite { get; }

Property Value

JsonTypeInfo<NetlifySite>

NetlifySiteCapabilities

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

public JsonTypeInfo<NetlifySiteCapabilities> NetlifySiteCapabilities { get; }

Property Value

JsonTypeInfo<NetlifySiteCapabilities>

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)

Gets metadata for the specified type.

public override JsonTypeInfo? GetTypeInfo(Type type)

Parameters

type Type

The type to fetch metadata for.

Returns

JsonTypeInfo

The metadata for the specified type, or null if the context has no metadata for the type.