示例#1
0
        public TraditionalRequest(HttpWebRequest request)
        {
            Request    = request;
            RequestExt = DependencyInjector.GetExtension <HttpWebRequest, IHttpWebRequestExtension> (Request);

            RequestExt.SetKeepAlive(true);
        }
示例#2
0
        public TraditionalRequest(Uri uri)
        {
            Request    = (HttpWebRequest)HttpWebRequest.Create(uri);
            RequestExt = DependencyInjector.GetExtension <HttpWebRequest, IHttpWebRequestExtension> (Request);

            RequestExt.SetKeepAlive(true);
        }