Esempio n. 1
0
 public override System.Data.Services.Http.WebResponse EndGetResponse(IAsyncResult asyncResult)
 {
     try
     {
         System.Net.HttpWebResponse response = (System.Net.HttpWebResponse) this.innerRequest.EndGetResponse(asyncResult);
         return(new ClientHttpWebResponse(response, this));
     }
     catch (System.Net.WebException exception)
     {
         ClientHttpWebResponse response = new ClientHttpWebResponse((System.Net.HttpWebResponse)exception.Response, this);
         throw new System.Data.Services.Http.WebException(exception.Message, exception, response);
     }
 }
 public override System.Data.Services.Http.WebResponse EndGetResponse(IAsyncResult asyncResult)
 {
     try
     {
         System.Net.HttpWebResponse response = (System.Net.HttpWebResponse)this.innerRequest.EndGetResponse(asyncResult);
         return new ClientHttpWebResponse(response, this);
     }
     catch (System.Net.WebException exception)
     {
         ClientHttpWebResponse response = new ClientHttpWebResponse((System.Net.HttpWebResponse)exception.Response, this);
         throw new System.Data.Services.Http.WebException(exception.Message, exception, response);
     }
 }