Exemple #1
0
        private void CreateResponse()
        {
            int statusCode;

            this.underlyingRequest.GetResponseStatus(out statusCode);
            if (statusCode != -1)
            {
                string responseHeaders = this.underlyingRequest.GetResponseHeaders();
                this.response = new System.Data.Services.Http.XHRHttpWebResponse(this, statusCode, responseHeaders);
            }
        }
Exemple #2
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();
        }
Exemple #3
0
 private void CreateResponse()
 {
     int statusCode;
     this.underlyingRequest.GetResponseStatus(out statusCode);
     if (statusCode != -1)
     {
         string responseHeaders = this.underlyingRequest.GetResponseHeaders();
         this.response = new System.Data.Services.Http.XHRHttpWebResponse(this, statusCode, responseHeaders);
     }
 }
Exemple #4
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();
        }