Skip to content

Conversation

@shrey711
Copy link
Collaborator

Implemented a custom configuration provider that can read configuration data from a .json file

if (content != null)
{
var Data = new Dictionary<string, string>
{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if there are more than 1 configurations in the json file?

using YCompany.Configurations;

namespace CustomConfigurationProvider.Controllers
{
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

controller is not requried in this project. this project will be referrenced in other project which will actually use the configuration provider.

@@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

configuration project should be a class library. not a web application

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants