Class OptionCatalog
All options of an application: the properties of its registered OptionSections, and logging levels.
Inherited Members
Namespace: Uniform.Matrix.Hosting
Assembly: Uniform.Matrix.Hosting.dll
Syntax
public sealed class OptionCatalog
Remarks
Descriptions come from the XML documentation of the option properties, so they match the API documentation; each assembly's documentation file is read once.
Constructors
| Edit this page View SourceOptionCatalog(IEnumerable<OptionSection>)
List the options of sections, in order.
Declaration
public OptionCatalog(IEnumerable<OptionSection> sections)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<OptionSection> | sections |
Methods
| Edit this page View SourceFormat(object?)
Format a value as configuration text: invariant culture, lowercase booleans, c format for time spans.
Declaration
public static string? Format(object? value)
Parameters
| Type | Name | Description |
|---|---|---|
| object | value |
Returns
| Type | Description |
|---|---|
| string |
GetAll(IConfiguration)
Return all options; logging levels include the categories configured in configuration.
Declaration
public IReadOnlyList<OptionInfo> GetAll(IConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| IConfiguration | configuration |
Returns
| Type | Description |
|---|---|
| IReadOnlyList<OptionInfo> |