通过web.config覆盖WebClientProtocol.Timeout

时间:2008-09-04 12:14:14

标签: .net configuration

是否可以通过web.config覆盖WebClientProtocol.Timeout属性的默认值?

<httpRuntime executionTimeout="500" /> <!-- this doesn't help -->

1 个答案:

答案 0 :(得分:2)

我想不出通过webconfig自动更改Timeout属性的方法。

手动配置值或使用DI为您读取值。

也可以在机器配置上全局更改值。