ASP.NET 5: How to reload strongly typed configuration on change ASP.NET 5: How to reload strongly typed configuration on change json json

ASP.NET 5: How to reload strongly typed configuration on change


When Configuration.GetSection() is called, it will pass in that section once at startup.

In order to have the AppSettings option update at run-time, you must bind the AppSettings option to the configuration section.

services.Configure<AppSettings>(option => Configuration.GetSection("AppSettings").Bind(option));