Exemplo n.º 1
0
        public static string DoRequest(Uri uri)
        {
            var req = _webRequestFactory.CreateHttp(uri);

            var    resp = req.GetResponse();
            string json;

            using (var sr = new StreamReader(resp.GetResponseStream()))
            {
                json = sr.ReadToEnd();
            }
            return(json);
        }