An open API service indexing awesome lists of open source software.

https://github.com/ffernandolima/extensions-configuration

Exposes configuration factory including legacy xml files support.
https://github.com/ffernandolima/extensions-configuration

Last synced: 10 months ago
JSON representation

Exposes configuration factory including legacy xml files support.

Awesome Lists containing this project

README

          

# extensions-configuration

Exposes configuration factory including legacy xml files support.

[![build-and-tests Workflow Status](https://github.com/ffernandolima/extensions-configuration/actions/workflows/build-and-tests.yml/badge.svg?branch=master)](https://github.com/ffernandolima/extensions-configuration/actions/workflows/build-and-tests.yml?branch=master)

[![build-and-publish Workflow Status](https://github.com/ffernandolima/extensions-configuration/actions/workflows/build-and-publish.yml/badge.svg?branch=master)](https://github.com/ffernandolima/extensions-configuration/actions/workflows/build-and-publish.yml?branch=master)

| Package | NuGet |
| ------- | ----- |
| Extensions.Configuration.Factory | [![Nuget](https://img.shields.io/badge/nuget-v2.3.0-blue) ![Nuget](https://img.shields.io/nuget/dt/Extensions.Configuration.Factory)](https://www.nuget.org/packages/Extensions.Configuration.Factory/2.3.0) |

## 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:
```JSON
{
"ParentKey" : {
"ChildKey" : "xxx"
}
}
```

App/Web.Config:
```XML



```

```C#
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