using System; using System.Net; namespace Neo.Afx.Services.Integration { /// /// This class will be used to extend the current .net WebClient /// public class IntegrationWebClient : WebClient { #region GetWebRequest /// /// Returns a object for the specified resource. /// /// A that identifies the resource to request. /// /// A new object for the specified resource. /// protected override WebRequest GetWebRequest(Uri address) { ServicePointManager.Expect100Continue = false; var req = base.GetWebRequest(address); if(req != null) { req.Timeout = 300000; } return req; } #endregion } }