Skip to content

OptionaryAttribute Constructors

ClassConstructors2 members
Declares the configuration section of an options class. Optionary's source generator describes the class as JSON Schema, which is merged into the application's appsettings.schema.json for editor completion and validation, and registers it with the options pipeline.
Declares the attributed class under the section derived from its name.
public sealed class OptionaryAttribute
{
public OptionaryAttribute()
{
// ...
}
}
Declares the attributed class under section.
public sealed class OptionaryAttribute
{
public OptionaryAttribute(
string section)
{
// ...
}
}
sectionstringThe section path, e.g. "Greetings" or "Http:Retry".