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,440
SanedBuildingBlocks
This package built for OIG-Saned
2,437
SanedBuildingBlocks
This package built for OIG-Saned
915
SanedBuildingBlocks
This package built for OIG-Saned
837
SanedBuildingBlocks
This package built for OIG-Saned
762
SanedBuildingBlocks
This package built for OIG-Saned
650
SanedBuildingBlocks
This package built for OIG-Saned
458
SanedBuildingBlocks
This package built for OIG-Saned
426
SanedBuildingBlocks
This package built for OIG-Saned
280
SanedBuildingBlocks
This package built for OIG-Saned
272
SanedBuildingBlocks
This package built for OIG-Saned
234
SanedBuildingBlocks
This package built for OIG-Saned
231
SanedBuildingBlocks
This package built for OIG-Saned
195
SanedBuildingBlocks
This package built for OIG-Saned
189
SanedBuildingBlocks
This package built for OIG-Saned
187
SanedBuildingBlocks
This package built for OIG-Saned
185
SanedBuildingBlocks
This package built for OIG-Saned
130
SanedBuildingBlocks
This package built for OIG-Saned
124
SanedBuildingBlocks
This package built for OIG-Saned
120
SanedBuildingBlocks
This package built for OIG-Saned
118

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 15 06/15/2023
5.0.0 15 06/16/2023
3.1.32 16 02/18/2025
3.1.31 15 02/18/2025
3.1.30 15 02/18/2025
3.1.29 15 02/18/2025
3.1.28 15 02/18/2025
3.1.27 15 02/18/2025
3.1.26 17 02/18/2025
3.1.25 17 02/18/2025
3.1.24 15 02/18/2025
3.1.23 15 02/18/2025
3.1.22 16 02/18/2025
3.1.21 16 02/18/2025
3.1.20 15 02/18/2025
3.1.19 15 02/18/2025
3.1.18 15 02/18/2025
3.1.17 15 02/18/2025
3.1.16 15 02/18/2025
3.1.15 17 02/18/2025
3.1.14 15 02/18/2025
3.1.13 15 02/18/2025
3.1.12 15 02/18/2025
3.1.11 15 02/18/2025
3.1.10 15 02/18/2025
3.1.8 17 06/26/2023
3.1.5 15 08/16/2023
3.1.0 15 10/02/2023
3.0.0 17 08/16/2023
2.0.0 18 06/16/2023