GetResponseStreamWithTimeout static method

Stream<List<int>> GetResponseStreamWithTimeout(
  1. IEwsHttpWebResponse response,
  2. int readTimeout
)
Gets the response stream (may be wrapped with GZip/Deflate stream to decompress content) HttpWebResponse. read timeout in milliseconds

Implementation

static Stream<List<int>> GetResponseStreamWithTimeout(
    IEwsHttpWebResponse response, int readTimeout) {
  Stream responseStream = response.GetResponseStream();

//            responseStream.ReadTimeout = readTimeout;
  return _WrapStream(
      responseStream as Stream<List<int>>, response.ContentEncoding);
}