【发布时间】:2010-09-07 19:12:02
【问题描述】:
是否可以通过 web.config 覆盖 WebClientProtocol.Timeout 属性的默认值?
<httpRuntime executionTimeout="500" /> <!-- this doesn't help -->
【问题讨论】:
标签: .net configuration
是否可以通过 web.config 覆盖 WebClientProtocol.Timeout 属性的默认值?
<httpRuntime executionTimeout="500" /> <!-- this doesn't help -->
【问题讨论】:
标签: .net configuration
我想不出一种方法来通过 webconfig 自动更改 Timeout 属性。
手动配置值或使用 DI 为您读取值。
也可以在机器配置上全局更改值。
【讨论】: