예제 #1
0
 public override void Abort()
 {
     this.aborted = true;
     if (this.underlyingRequest != null)
     {
         this.underlyingRequest.Abort();
         this.underlyingRequest.Dispose();
         this.underlyingRequest = null;
     }
     if (this.response != null)
     {
         ((XHRHttpWebResponse)this.response).InternalRequest = null;
         this.response = null;
     }
     this.Close();
 }
예제 #2
0
 private void CreateResponse()
 {
     int num;
     this.underlyingRequest.GetResponseStatus(out num);
     if (num != -1)
     {
         string responseHeaders = this.underlyingRequest.GetResponseHeaders();
         this.response = new XHRHttpWebResponse(this, num, responseHeaders);
     }
 }
예제 #3
0
파일: WebException.cs 프로젝트: npenin/uss
 public WebException(string message, Exception innerException, HttpWebResponse response) : base(message, innerException)
 {
     this.response = response;
 }