Skip to content

Exposes configuration factory including legacy xml files support.

License

Notifications You must be signed in to change notification settings

ffernandolima/extensions-configuration

Repository files navigation

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

About

Exposes configuration factory including legacy xml files support.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages