Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 1.92 KB

README.md

File metadata and controls

56 lines (40 loc) · 1.92 KB

extensions-configuration

Exposes configuration factory including legacy xml files support.

build-and-tests Workflow Status

build-and-publish Workflow Status

Package NuGet
Extensions.Configuration.Factory Nuget Nuget

Installation

It is available on Nuget.

Install-Package Extensions.Configuration.Factory -Version 2.3.0

Usage

The following code demonstrates basic usage of configuration factory.

appsettings.json:

{ 
 "ParentKey" : {
   "ChildKey" : "xxx"
 }
}

App/Web.Config:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <appSettings>
    <add key="ParentKey:ChildKey" value="xxx" />
  </appSettings>
</configuration>
var config = ConfigurationFactory.Instance.GetConfiguration();
var value = config["ParentKey:ChildKey"];

Support / Contributing

If you want to help with the project, feel free to open pull requests and submit issues.

Donate

If you would like to show your support for this project, then please feel free to buy me a coffee.

Buy Me A Coffee