encountered a requirement. After modifying the appsettings.json file, you need to trigger a cascading event with modified settings. Does anyone know how to get this OnChange event?
configure the appsettings.json code as follows:
new ConfigurationBuilder()
.SetBasePath(environment.ContentRootPath)
.AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)