1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
| //using System;
| //using System.Net;
|
| //namespace HDL_ON.DAL.Net
| //{
| // public class MyWebClient : WebClient
| // {
| // int _timeout = 10000;
|
| // /// <summary>
| // /// 超时时间(毫秒)
| // /// </summary>
| // public int Timeout {
| // get {
| // return _timeout;
| // }
| // set {
| // _timeout = value;
| // }
| // }
| // public MyWebClient ()
| // {
|
| // }
|
| // public MyWebClient (int timeout)
| // {
| // this._timeout = timeout;
| // }
|
| // protected override WebRequest GetWebRequest (Uri address)
| // {
| // var result = base.GetWebRequest (address);
| // result.Timeout = this._timeout;
| // return result;
| // }
| // }
| //}
|
|