public TraditionalRequest(HttpWebRequest request) { Request = request; RequestExt = DependencyInjector.GetExtension <HttpWebRequest, IHttpWebRequestExtension> (Request); RequestExt.SetKeepAlive(true); }
public TraditionalRequest(Uri uri) { Request = (HttpWebRequest)HttpWebRequest.Create(uri); RequestExt = DependencyInjector.GetExtension <HttpWebRequest, IHttpWebRequestExtension> (Request); RequestExt.SetKeepAlive(true); }