Microsoft.Extensions.Configuration.Abstractions 9.0.0
About
Provides abstractions of key-value pair based configuration. Interfaces defined in this package are implemented by classes in Microsoft.Extensions.Configuration and other configuration packages.
Key Features
- Abstractions for string key-value pair configuration sources and sections
- Path conventions of keys establishing a heirachy of values
- Support for multiple configuration sources, aggregating and defining precdence for values
- Support for reload on change
How to Use
The example below shows a small code sample using this library and trying out the ConfigurationKeyName attribute available since .NET 6:
public class MyClass
{
[ConfigurationKeyName("named_property")]
public string NamedProperty { get; set; }
}
Given the simple class above, we can create a dictionary to hold the configuration data and use it as the memory source to build a configuration section:
var dic = new Dictionary<string, string>
{
{"named_property", "value for named property"},
};
var config = new ConfigurationBuilder()
.AddInMemoryCollection(dic)
.Build();
var options = config.Get<MyClass>();
Console.WriteLine(options.NamedProperty); // returns "value for named property"
Main Types
The main types provided by this library are:
Microsoft.Extensions.Configuration.IConfigurationMicrosoft.Extensions.Configuration.IConfigurationBuilderMicrosoft.Extensions.Configuration.IConfigurationProviderMicrosoft.Extensions.Configuration.IConfigurationRootMicrosoft.Extensions.Configuration.IConfigurationSection
Additional Documentation
Related Packages
- Microsoft.Extensions.Configuration
- Microsoft.Extensions.Configuration.Binder
- Microsoft.Extensions.Configuration.CommandLine
- Microsoft.Extensions.Configuration.EnvironmentVariables
- Microsoft.Extensions.Configuration.FileExtensions
- Microsoft.Extensions.Configuration.Ini
- Microsoft.Extensions.Configuration.Json
- Microsoft.Extensions.Configuration.UserSecrets
- Microsoft.Extensions.Configuration.Xml
Feedback & Contributing
Microsoft.Extensions.Caching.Abstractions is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
Showing the top 20 packages that depend on Microsoft.Extensions.Configuration.Abstractions.
| Packages | Downloads |
|---|---|
|
SanedBuildingBlocks
This package built for OIG-Saned
|
3,378 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
2,351 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
908 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
831 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
740 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
643 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
449 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
419 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
274 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
266 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
189 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
184 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
182 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
123 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
118 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
115 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
112 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
108 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
101 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
92 |
.NET Framework 4.6.2
- Microsoft.Extensions.Primitives (>= 9.0.0)
- System.ValueTuple (>= 4.5.0)
.NET 8.0
- Microsoft.Extensions.Primitives (>= 9.0.0)
.NET 9.0
- Microsoft.Extensions.Primitives (>= 9.0.0)
.NET Standard 2.0
- Microsoft.Extensions.Primitives (>= 9.0.0)
| Version | Downloads | Last updated |
|---|---|---|
| 9.0.0 | 15 | 12/01/2024 |
| 6.0.0 | 11 | 06/15/2023 |
| 5.0.0 | 11 | 06/16/2023 |
| 3.1.32 | 12 | 02/18/2025 |
| 3.1.31 | 11 | 02/18/2025 |
| 3.1.30 | 11 | 02/18/2025 |
| 3.1.29 | 11 | 02/18/2025 |
| 3.1.28 | 11 | 02/18/2025 |
| 3.1.27 | 11 | 02/18/2025 |
| 3.1.26 | 13 | 02/18/2025 |
| 3.1.25 | 12 | 02/18/2025 |
| 3.1.24 | 11 | 02/18/2025 |
| 3.1.23 | 11 | 02/18/2025 |
| 3.1.22 | 12 | 02/18/2025 |
| 3.1.21 | 12 | 02/18/2025 |
| 3.1.20 | 11 | 02/18/2025 |
| 3.1.19 | 11 | 02/18/2025 |
| 3.1.18 | 11 | 02/18/2025 |
| 3.1.17 | 11 | 02/18/2025 |
| 3.1.16 | 11 | 02/18/2025 |
| 3.1.15 | 13 | 02/18/2025 |
| 3.1.14 | 11 | 02/18/2025 |
| 3.1.13 | 11 | 02/18/2025 |
| 3.1.12 | 11 | 02/18/2025 |
| 3.1.11 | 11 | 02/18/2025 |
| 3.1.10 | 11 | 02/18/2025 |
| 3.1.8 | 13 | 06/26/2023 |
| 3.1.5 | 11 | 08/16/2023 |
| 3.1.0 | 11 | 10/02/2023 |
| 3.0.0 | 13 | 08/16/2023 |
| 2.0.0 | 13 | 06/16/2023 |