/// <summary>
 /// Initializes a new instance of the <see cref="GzipHttpWebResponse"/> class.
 /// </summary>
 /// <param name="request">The request.</param>
 /// <param name="result">The result.</param>
 public GzipHttpWebResponse(WebRequest request, IAsyncResult result)
     : base()
 {
     if (!(request is GzipHttpWebRequest) || !(result is GZipClientAsyncResult))
         throw new ArgumentException();
     this.request = request as GzipHttpWebRequest;
     this.result = result as GZipClientAsyncResult;
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GzipHttpWebResponse"/> class.
 /// </summary>
 /// <param name="request">The request.</param>
 /// <param name="result">The result.</param>
 public GzipHttpWebResponse(WebRequest request, IAsyncResult result)
     : base()
 {
     if (!(request is GzipHttpWebRequest) || !(result is GZipClientAsyncResult))
     {
         throw new ArgumentException();
     }
     this.request = request as GzipHttpWebRequest;
     this.result  = result as GZipClientAsyncResult;
 }