Microsoft.Extensions.Configuration.Abstractions 9.0.6
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.IConfiguration
Microsoft.Extensions.Configuration.IConfigurationBuilder
Microsoft.Extensions.Configuration.IConfigurationProvider
Microsoft.Extensions.Configuration.IConfigurationRoot
Microsoft.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 |
---|---|
Dapper.Extensions.NetCore
A dapper extension library. Support MySQL,SQL Server,PostgreSQL,SQLite,Oracle and ODBC, Support cache.
|
10 |
Microsoft.EntityFrameworkCore.Relational
Shared Entity Framework Core components for relational database providers.
|
9 |
Microsoft.EntityFrameworkCore.Relational
Shared Entity Framework Core components for relational database providers.
|
10 |
Microsoft.EntityFrameworkCore.SqlServer
Microsoft SQL Server database provider for Entity Framework Core.
|
9 |
Microsoft.EntityFrameworkCore.SqlServer
Microsoft SQL Server database provider for Entity Framework Core.
|
10 |
Microsoft.EntityFrameworkCore.SqlServer.HierarchyId
Adds hierarchyid support to the SQL Server EF Core provider
|
10 |
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
|
8 |
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
|
9 |
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
|
10 |
Microsoft.Extensions.Configuration.Binder
Provides the functionality to bind an object to data in configuration providers for Microsoft.Extensions.Configuration. This package enables you to represent the configuration data as strongly-typed classes defined in the application code. To bind a configuration, use the Microsoft.Extensions.Configuration.ConfigurationBinder.Get extension method on the IConfiguration object. To use this package, you also need to install a package for the configuration provider, for example, Microsoft.Extensions.Configuration.Json for the JSON provider.
|
9 |
Microsoft.Extensions.Configuration.Binder
Provides the functionality to bind an object to data in configuration providers for Microsoft.Extensions.Configuration. This package enables you to represent the configuration data as strongly-typed classes defined in the application code. To bind a configuration, use the Microsoft.Extensions.Configuration.ConfigurationBinder.Get extension method on the IConfiguration object. To use this package, you also need to install a package for the configuration provider, for example, Microsoft.Extensions.Configuration.Json for the JSON provider.
|
10 |
Microsoft.Extensions.Configuration.Binder
Provides the functionality to bind an object to data in configuration providers for Microsoft.Extensions.Configuration. This package enables you to represent the configuration data as strongly-typed classes defined in the application code. To bind a configuration, use the Microsoft.Extensions.Configuration.ConfigurationBinder.Get extension method on the IConfiguration object. To use this package, you also need to install a package for the configuration provider, for example, Microsoft.Extensions.Configuration.Json for the JSON provider.
|
11 |
Microsoft.Extensions.Hosting.Abstractions
Hosting and startup abstractions for applications.
|
9 |
Microsoft.Extensions.Hosting.Abstractions
Hosting and startup abstractions for applications.
|
10 |
Microsoft.Extensions.Http
The HttpClient factory is a pattern for configuring and retrieving named HttpClients in a composable way. The HttpClient factory provides extensibility to plug in DelegatingHandlers that address cross-cutting concerns such as service location, load balancing, and reliability. The default HttpClient factory provides built-in diagnostics and logging and manages the lifetimes of connections in a performant way.
Commonly Used Types:
System.Net.Http.IHttpClientFactory
|
10 |
Microsoft.Extensions.Logging.Log4Net.AspNetCore
Allows to configure Log4net as Microsoft Extensions Logging handler on any ASP.NET Core application.
Original code proposal by @anuraj --> https://dotnetthoughts.net/how-to-use-log4net-with-aspnetcore-for-logging/
|
8 |
Microsoft.Extensions.Options.ConfigurationExtensions
Provides additional configuration specific functionality related to Options.
|
10 |
.NET Framework 4.6.2
- Microsoft.Extensions.Primitives (>= 9.0.6)
- System.ValueTuple (>= 4.5.0)
.NET 8.0
- Microsoft.Extensions.Primitives (>= 9.0.6)
.NET 9.0
- Microsoft.Extensions.Primitives (>= 9.0.6)
.NET Standard 2.0
- Microsoft.Extensions.Primitives (>= 9.0.6)
Version | Downloads | Last updated |
---|---|---|
10.0.0-preview.4.25258.110 | 1 | 5/16/2025 |
10.0.0-preview.3.25171.5 | 1 | 4/24/2025 |
10.0.0-preview.2.25163.2 | 1 | 4/4/2025 |
10.0.0-preview.1.25080.5 | 1 | 2/28/2025 |
9.0.6 | 0 | 6/21/2025 |
9.0.5 | 10 | 5/16/2025 |
9.0.4 | 10 | 4/25/2025 |
9.0.3 | 1 | 4/12/2025 |
9.0.2 | 9 | 2/28/2025 |
9.0.1 | 1 | 1/18/2025 |
9.0.0 | 9 | 11/14/2024 |
9.0.0-rc.2.24473.5 | 1 | 11/14/2024 |
9.0.0-preview.7.24405.7 | 1 | 11/10/2024 |
9.0.0-preview.6.24327.7 | 1 | 11/10/2024 |
9.0.0-preview.3.24172.9 | 1 | 11/10/2024 |
9.0.0-preview.1.24080.9 | 1 | 11/10/2024 |
8.0.0 | 9 | 3/17/2025 |
8.0.0-rc.1.23419.4 | 1 | 11/10/2024 |
8.0.0-preview.4.23259.5 | 1 | 11/10/2024 |
8.0.0-preview.2.23128.3 | 1 | 11/10/2024 |
7.0.0 | 1 | 11/10/2024 |
7.0.0-rc.2.22472.3 | 1 | 11/13/2024 |
7.0.0-rc.1.22426.10 | 1 | 11/10/2024 |
7.0.0-preview.1.22076.8 | 1 | 11/13/2024 |
6.0.1 | 2 | 11/14/2024 |
6.0.0 | 11 | 11/10/2024 |
6.0.0-rc.1.21451.13 | 1 | 11/10/2024 |
6.0.0-preview.7.21377.19 | 1 | 11/10/2024 |
6.0.0-preview.3.21201.4 | 1 | 11/13/2024 |
6.0.0-preview.1.21102.12 | 1 | 11/10/2024 |
5.0.0-preview.1.20120.4 | 1 | 11/13/2024 |
3.1.30 | 1 | 11/10/2024 |
3.1.29 | 1 | 11/10/2024 |
3.1.27 | 1 | 11/10/2024 |
3.1.25 | 1 | 11/10/2024 |
3.1.23 | 1 | 11/10/2024 |
3.1.22 | 1 | 11/10/2024 |
3.1.21 | 1 | 11/10/2024 |
3.1.16 | 1 | 11/10/2024 |
3.1.15 | 0 | 11/10/2024 |
3.1.14 | 1 | 11/10/2024 |
3.1.13 | 1 | 11/10/2024 |
3.1.12 | 1 | 11/13/2024 |
3.1.11 | 1 | 11/10/2024 |
3.1.10 | 1 | 11/10/2024 |
3.1.7 | 1 | 11/10/2024 |
3.1.6 | 7 | 11/10/2024 |
3.1.5 | 0 | 6/21/2025 |
3.1.1 | 1 | 11/10/2024 |
3.1.0-preview3.19553.2 | 1 | 11/13/2024 |
3.0.0 | 1 | 11/10/2024 |
3.0.0-rc1.19456.10 | 1 | 11/10/2024 |
3.0.0-preview6.19304.6 | 1 | 11/10/2024 |
3.0.0-preview5.19227.9 | 1 | 11/10/2024 |
3.0.0-preview.18572.1 | 1 | 11/13/2024 |
2.2.0-preview3-35497 | 1 | 11/10/2024 |
2.2.0-preview1-35029 | 1 | 11/10/2024 |
2.1.1 | 1 | 11/10/2024 |
2.1.0 | 1 | 11/10/2024 |
2.1.0-preview1-final | 1 | 11/10/2024 |
2.0.0 | 1 | 11/10/2024 |
2.0.0-preview2-final | 1 | 11/10/2024 |
1.0.2 | 1 | 11/10/2024 |
1.0.1 | 1 | 11/10/2024 |