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.IConfiguration
  • Microsoft.Extensions.Configuration.IConfigurationBuilder
  • Microsoft.Extensions.Configuration.IConfigurationProvider
  • Microsoft.Extensions.Configuration.IConfigurationRoot
  • Microsoft.Extensions.Configuration.IConfigurationSection

Additional Documentation

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,442
SanedBuildingBlocks
This package built for OIG-Saned
2,443
SanedBuildingBlocks
This package built for OIG-Saned
916
SanedBuildingBlocks
This package built for OIG-Saned
838
SanedBuildingBlocks
This package built for OIG-Saned
764
SanedBuildingBlocks
This package built for OIG-Saned
652
SanedBuildingBlocks
This package built for OIG-Saned
460
SanedBuildingBlocks
This package built for OIG-Saned
428
SanedBuildingBlocks
This package built for OIG-Saned
281
SanedBuildingBlocks
This package built for OIG-Saned
273
SanedBuildingBlocks
This package built for OIG-Saned
236
SanedBuildingBlocks
This package built for OIG-Saned
233
SanedBuildingBlocks
This package built for OIG-Saned
196
SanedBuildingBlocks
This package built for OIG-Saned
191
SanedBuildingBlocks
This package built for OIG-Saned
188
SanedBuildingBlocks
This package built for OIG-Saned
186
SanedBuildingBlocks
This package built for OIG-Saned
171
SanedBuildingBlocks
This package built for OIG-Saned
150
SanedBuildingBlocks
This package built for OIG-Saned
131
SanedBuildingBlocks
This package built for OIG-Saned
126

https://go.microsoft.com/fwlink/?LinkID=799421

.NET Framework 4.6.2

.NET 8.0

.NET 9.0

.NET Standard 2.0

Version Downloads Last updated
9.0.0 20 12/01/2024
6.0.0 16 06/15/2023
5.0.0 16 06/16/2023
3.1.32 17 02/18/2025
3.1.31 16 02/18/2025
3.1.30 16 02/18/2025
3.1.29 16 02/18/2025
3.1.28 16 02/18/2025
3.1.27 16 02/18/2025
3.1.26 18 02/18/2025
3.1.25 18 02/18/2025
3.1.24 16 02/18/2025
3.1.23 17 02/18/2025
3.1.22 17 02/18/2025
3.1.21 17 02/18/2025
3.1.20 16 02/18/2025
3.1.19 16 02/18/2025
3.1.18 16 02/18/2025
3.1.17 16 02/18/2025
3.1.16 17 02/18/2025
3.1.15 18 02/18/2025
3.1.14 16 02/18/2025
3.1.13 16 02/18/2025
3.1.12 16 02/18/2025
3.1.11 17 02/18/2025
3.1.10 16 02/18/2025
3.1.8 18 06/26/2023
3.1.5 15 08/16/2023
3.1.0 16 10/02/2023
3.0.0 18 08/16/2023
2.0.0 18 06/16/2023