Skip to content

DovetailConfigurationAttribute<T>

Classsealednet10.0
📦 Joinery.Dovetail v0.4.3-beta.13
Declares the configuration section of an options type T from the assembly, for types you don't own.
namespace Joinery.Dovetail.Attributes;
public sealed class DovetailConfigurationAttribute<T>
: System.Attribute
where T : class
{
// ...
}
T: class
Attribute
T
The options type.

For example, [assembly: DovetailConfiguration<HostOptions>("Hosting")].

The section path follows the same rules as DovetailConfigurationAttribute. Apply it once for each type you configure. A type has one section: naming it twice, or also declaring it with the class form, is reported as DT0015. DovetailConfigurationAttribute`1.KeyStyle works as it does on the class form.

Only works with source generators enabled.

View all constructors
View all properties