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
optionsJsonSerializerOptionsThe 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
Default
The default JsonSerializerContext associated with a default JsonSerializerOptions instance.
public static NetlifySnakeCaseContext Default { get; }
Property Value
GeneratedSerializerOptions
The source-generated options associated with this context.
protected override JsonSerializerOptions? GeneratedSerializerOptions { get; }
Property Value
Int32
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<int> Int32 { get; }
Property Value
NetlifySite
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<NetlifySite> NetlifySite { get; }
Property Value
NetlifySiteCapabilities
Defines the source generated JSON serialization contract metadata for a given type.
public JsonTypeInfo<NetlifySiteCapabilities> NetlifySiteCapabilities { 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)
Gets metadata for the specified type.
public override JsonTypeInfo? GetTypeInfo(Type type)
Parameters
typeTypeThe type to fetch metadata for.
Returns
- JsonTypeInfo
The metadata for the specified type, or null if the context has no metadata for the type.