Skip to content

DovetailConfigurationAttribute Constructors

ClassConstructors2 members
Declares the configuration section of an options class. Dovetail'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 DovetailConfigurationAttribute
{
public DovetailConfigurationAttribute()
{
// ...
}
}
Declares the attributed class under section.
public sealed class DovetailConfigurationAttribute
{
public DovetailConfigurationAttribute(
string section)
{
// ...
}
}
sectionstringThe section path, e.g. "Greetings" or "Http:Retry".