Пример #1
0
        public WSSWebResponse(WebResponse webResponse)
        {
            this.webResponse = webResponse;
            stream           = new NoCloseMemoryStream();
            Stream stream1 = webResponse.GetResponseStream();

            byte[] buffer1 = new byte[0x400];
            while (true)
            {
                int num1 = stream1.Read(buffer1, 0, buffer1.Length);
                if (num1 <= 0)
                {
                    break;
                }
                stream.Write(buffer1, 0, num1);
            }
            stream.Position = 0;
        }
Пример #2
0
 public WSSWebRequest(WebRequest webRequest)
 {
     this.webRequest = webRequest;
     stream          = new NoCloseMemoryStream();
 }