Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

appsettings.json file support for the configuration and to allow run-time configuration changes #9

Open
tolgacakir opened this issue Jan 1, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@tolgacakir
Copy link
Member

this issue is created from here

@tolgacakir tolgacakir self-assigned this Jan 1, 2023
@tolgacakir tolgacakir added the enhancement New feature or request label Jan 1, 2023
@bberberoglu
Copy link

Maybe we can create custom data provider for this library and data source can be changed from appsettings,
please look this document https://learn.microsoft.com/en-us/dotnet/core/extensions/custom-configuration-provider.

for example; (this json scheme can be changed)
In appSettings -->
{
....
"NLocalizator": {
"DataProvider" : "File",
"Path" : "../../..." //Dataprovider read localization data from this path and reload if file changed
}
}

also this settings can be done with extention method which is used for adding library to startup.cs

Also custom configuration provider support IOptions/IOptionsSnapshot/IOptionsMonitor.
image
https://tsuyoshiushio.medium.com/option-patterns-with-custom-configuration-provider-in-net-1a2fca90c6c3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants