We use 9.3 MVC/Jquery with .net framework
We understand that data in the abpSettings table is loaded at start-up. Is there a way to programmatically reload the settings form this table? We have a use case where a setting would change and we don't want the whole site to go down so that setting can be reloaded / refreshed.
Thank you for your time and effort.
3 Answer(s)
-
0
Hi carelearning, You can inject
ISettingManager
and use itsChangeSettingXXX()
method to change the value. For details, please refer to this document: https://aspnetboilerplate.com/Pages/Documents/Setting-Management#changing-settings -
0
Hi Zony,
Thank you very much for your reply. This will work for some use cases, but not the one we have. We have a situation where multiple settings could be added and/or updated for a certain Tenant. Is there any API or process to reload all of the settings? Thank you again.
-
0
Hi @carelearning
Do you change settings on the server side like this https://aspnetboilerplate.com/Pages/Documents/Setting-Management#changing-settings ? If so, setting values must be updated without restarting the entire app.