OptionsCatalogEntry
NexusLabs.Needlr¶
NexusLabs.Needlr.Catalog¶
OptionsCatalogEntry Class¶
Represents an options/configuration binding discovered at compile time.
public sealed record OptionsCatalogEntry : System.IEquatable<NexusLabs.Needlr.Catalog.OptionsCatalogEntry>
Inheritance System.Object 🡒 OptionsCatalogEntry
Implements System.IEquatable<OptionsCatalogEntry>
Constructors¶
OptionsCatalogEntry(string, string, string, string, string, bool, bool, bool, string) Constructor¶
Represents an options/configuration binding discovered at compile time.
public OptionsCatalogEntry(string TypeName, string ShortTypeName, string SectionName, string AssemblyName, string? Name=null, bool ValidateOnStart=false, bool HasValidator=false, bool HasDataAnnotations=false, string? SourceFilePath=null);
Parameters¶
TypeName System.String
The fully qualified name of the options type.
ShortTypeName System.String
The short name of the options type (without namespace).
SectionName System.String
The configuration section name this options type binds to.
AssemblyName System.String
The assembly name where this type is defined.
Name System.String
The named options name, or null for default options.
ValidateOnStart System.Boolean
True if validation is performed on application start.
HasValidator System.Boolean
True if this options type has a validation method.
HasDataAnnotations System.Boolean
True if this options type has DataAnnotation validation attributes.
SourceFilePath System.String
Source file path where the type is defined, if available.
Properties¶
OptionsCatalogEntry.AssemblyName Property¶
The assembly name where this type is defined.
Property Value¶
OptionsCatalogEntry.HasDataAnnotations Property¶
True if this options type has DataAnnotation validation attributes.
Property Value¶
OptionsCatalogEntry.HasValidator Property¶
True if this options type has a validation method.
Property Value¶
OptionsCatalogEntry.Name Property¶
The named options name, or null for default options.
Property Value¶
OptionsCatalogEntry.SectionName Property¶
The configuration section name this options type binds to.
Property Value¶
OptionsCatalogEntry.ShortTypeName Property¶
The short name of the options type (without namespace).
Property Value¶
OptionsCatalogEntry.SourceFilePath Property¶
Source file path where the type is defined, if available.
Property Value¶
OptionsCatalogEntry.TypeName Property¶
The fully qualified name of the options type.
Property Value¶
OptionsCatalogEntry.ValidateOnStart Property¶
True if validation is performed on application start.