You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
435 B
C#
20 lines
435 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Web;
|
|
|
|
namespace DSWeb.Helper
|
|
{
|
|
public class WebClientEx : WebClient
|
|
{
|
|
public int Timeout { get; set; }
|
|
|
|
protected override WebRequest GetWebRequest(Uri address)
|
|
{
|
|
var request = base.GetWebRequest(address);
|
|
request.Timeout = Timeout;
|
|
return request;
|
|
}
|
|
}
|
|
} |