【发布时间】:2013-12-12 01:55:35
【问题描述】:
我听说在生产环境中更改配置值而不回收应用程序池是个好主意。
但是,更改会触及 web.config 并导致此 *无论如何。*
如果无法避免应用池回收,以编程方式存储 appSettings 是否会降低灵活性或降低健壮性?
例如在伪代码中:
Application_Start() {
AppSettingHelper.EmailOnException = ConfigurationManager.AppSettings[key];
}
然后,我使用:AppSettingHelper.EmailOnException
【问题讨论】:
标签: asp.net asp.net-mvc iis application-pool appsettings