Microsoft.Extensions.Configuration.Abstractions 8.0.0-preview.7.23375.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.
Commonly used types:
- Microsoft.Extensions.Configuration.IConfiguration
- Microsoft.Extensions.Configuration.IConfigurationBuilder
- Microsoft.Extensions.Configuration.IConfigurationProvider
- Microsoft.Extensions.Configuration.IConfigurationRoot
- Microsoft.Extensions.Configuration.IConfigurationSection
For more information, see the documentation: Configuration in .NET.
Example
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"
Showing the top 20 packages that depend on Microsoft.Extensions.Configuration.Abstractions.
Packages | Downloads |
---|---|
Microsoft.AspNetCore.Hosting.Abstractions
ASP.NET Core hosting and startup abstractions for web applications.
|
73 |
Microsoft.AspNetCore.Cors
CORS middleware and policy for ASP.NET Core to enable cross-origin resource sharing.
Commonly used types:
Microsoft.AspNetCore.Cors.DisableCorsAttribute
Microsoft.AspNetCore.Cors.EnableCorsAttribute
This package was built from the source code at https://github.com/aspnet/CORS/tree/f05b0e792d2361be214947798857ef3eac77825d
|
64 |
Microsoft.AspNetCore.Hosting.Abstractions
ASP.NET Core hosting and startup abstractions for web applications.
|
58 |
Microsoft.AspNetCore.Cors
CORS middleware and policy for ASP.NET Core to enable cross-origin resource sharing.
Commonly used types:
Microsoft.AspNetCore.Cors.DisableCorsAttribute
Microsoft.AspNetCore.Cors.EnableCorsAttribute
|
56 |
Microsoft.AspNetCore.Hosting.Server.Abstractions
ASP.NET Core hosting server abstractions for web applications.
|
55 |
Microsoft.Extensions.Options.ConfigurationExtensions
Provides additional configuration specific functionality related to Options.
|
54 |
Microsoft.AspNetCore.Hosting.Abstractions
ASP.NET Core hosting and startup abstractions for web applications.
|
54 |
Microsoft.AspNetCore.Hosting.Abstractions
ASP.NET 5 Hosting abstractions.
|
53 |
Microsoft.AspNetCore.Cors
CORS middleware and policy for ASP.NET Core to enable cross-origin resource sharing.
Commonly used types:
Microsoft.AspNetCore.Cors.DisableCorsAttribute
Microsoft.AspNetCore.Cors.EnableCorsAttribute
|
53 |
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
|
52 |
Microsoft.Identity.Client.Extensions.Msal
This package contains extensions to Microsoft Authentication Library for .NET (MSAL.NET)
|
52 |
Microsoft.AspNetCore.Hosting.Server.Abstractions
ASP.NET Core hosting server abstractions for web applications.
|
51 |
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
|
50 |
Microsoft.AspNetCore.Hosting.Abstractions
ASP.NET Core hosting and startup abstractions for web applications.
|
50 |
Microsoft.Extensions.Logging.Console
Console logger provider implementation for Microsoft.Extensions.Logging.
|
50 |
Microsoft.Extensions.Logging.Console
Console logger provider implementation for Microsoft.Extensions.Logging.
When using NuGet 3.x this package requires at least version 3.4.
|
50 |
Microsoft.Extensions.Configuration
Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
|
49 |
Microsoft.AspNetCore.Hosting.Server.Abstractions
ASP.NET 5 Hosting server abstractions.
|
49 |
Microsoft.Extensions.Logging.Console
Console logger provider implementation for Microsoft.Extensions.Logging.
|
49 |
Microsoft.Extensions.Configuration.Binder
Functionality to bind an object to data in configuration providers for Microsoft.Extensions.Configuration.
When using NuGet 3.x this package requires at least version 3.4.
|
49 |
.NET Framework 4.6.2
- Microsoft.Extensions.Primitives (>= 8.0.0-preview.7.23375.6)
- System.ValueTuple (>= 4.5.0)
.NET 6.0
- Microsoft.Extensions.Primitives (>= 8.0.0-preview.7.23375.6)
.NET 7.0
- Microsoft.Extensions.Primitives (>= 8.0.0-preview.7.23375.6)
.NET 8.0
- Microsoft.Extensions.Primitives (>= 8.0.0-preview.7.23375.6)
.NET Standard 2.0
- Microsoft.Extensions.Primitives (>= 8.0.0-preview.7.23375.6)