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,423 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
2,419 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
912 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
833 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
753 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
647 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
456 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
422 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
276 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
269 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
221 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
191 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
186 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
184 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
157 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
125 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
121 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
118 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
115 |
|
SanedBuildingBlocks
This package built for OIG-Saned
|
110 |
.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 | 18 | 12/01/2024 |
| 6.0.0 | 13 | 06/15/2023 |
| 5.0.0 | 13 | 06/16/2023 |
| 3.1.32 | 14 | 02/18/2025 |
| 3.1.31 | 13 | 02/18/2025 |
| 3.1.30 | 13 | 02/18/2025 |
| 3.1.29 | 13 | 02/18/2025 |
| 3.1.28 | 13 | 02/18/2025 |
| 3.1.27 | 13 | 02/18/2025 |
| 3.1.26 | 15 | 02/18/2025 |
| 3.1.25 | 14 | 02/18/2025 |
| 3.1.24 | 13 | 02/18/2025 |
| 3.1.23 | 13 | 02/18/2025 |
| 3.1.22 | 14 | 02/18/2025 |
| 3.1.21 | 14 | 02/18/2025 |
| 3.1.20 | 13 | 02/18/2025 |
| 3.1.19 | 13 | 02/18/2025 |
| 3.1.18 | 13 | 02/18/2025 |
| 3.1.17 | 13 | 02/18/2025 |
| 3.1.16 | 13 | 02/18/2025 |
| 3.1.15 | 15 | 02/18/2025 |
| 3.1.14 | 13 | 02/18/2025 |
| 3.1.13 | 13 | 02/18/2025 |
| 3.1.12 | 13 | 02/18/2025 |
| 3.1.11 | 13 | 02/18/2025 |
| 3.1.10 | 13 | 02/18/2025 |
| 3.1.8 | 15 | 06/26/2023 |
| 3.1.5 | 13 | 08/16/2023 |
| 3.1.0 | 13 | 10/02/2023 |
| 3.0.0 | 15 | 08/16/2023 |
| 2.0.0 | 15 | 06/16/2023 |