FHSSpiritDataControl.DataControlNews.ResponseCallback C# (CSharp) Method

ResponseCallback() private method

private ResponseCallback ( IAsyncResult result ) : void
result IAsyncResult
return void
        private void ResponseCallback(IAsyncResult result)
        {
            try
            {
                HttpWebRequest httpWebRequest = (HttpWebRequest)result.AsyncState;

                WebResponse response = httpWebRequest.EndGetResponse(result);

                System.IO.Stream stream = response.GetResponseStream();
                System.IO.StreamReader sr = new System.IO.StreamReader(stream);

                string strJSON = sr.ReadToEnd();

                processJSONString(strJSON);
            }
            catch (Exception ex)
            {
                this.m_del_ErrorMessage(ex.Message);
            }
        }