Skip to content
代码片段 群组 项目
未验证 提交 d284f15d 编辑于 作者: David Fowler's avatar David Fowler 提交者: GitHub
浏览文件

Fix how host configuration is handled in WebApplicationBuilder (#36186) (#36233)

- The new WebApplicationBuilder merged host configuration and application configuration together into the same configuration source, then applied those changes to the final all as host configuration. This had some bad side effects:
  - All configuration changes are wrapped in a chained configuration source which prevented updates (that's a runtime bug)
 - Host configuration could be mutated by changing any value directly in configuration. This meant that different parts of the code base could see a different environment, application name and content root.
This change fixes things by snapshotting the immutable host configuration in the constructor and applying it later. Then only applying configuration sources to application configuration, not host configuration.
- Added tests
上级 fb14e615
No related branches found
No related tags found
加载中
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册