How to access IConfigurationRoot in startup on .net core 2?
问题 I have written a custom ConfigurationProvider with the entity framework. Since I also want to make it updateable during runtime, I have created a IWritableableOption. I need to refresh the configuration after the update. This can be done via IConfigurationRoot.Reload. However, how can I get the IConfigurationRoot in .net core 2? What I have found, is that in previous versions the IConfigurationRoot was part of startup. In .net core 2 however, we have only the simpler type IConfiguration :