示例#1
0
        private dynamic Train(dynamic arg)
        {
            String url        = this.Request.Body.ToString();
            var    webRequest = WebRequest.Create(url);

            using (var response = webRequest.GetResponse())
                using (var content = response.GetResponseStream())
                    using (var reader = new StreamReader(content))
                    {
                        var fullContent = reader.ReadToEnd();
                        var records     = _typeHandler.Decode(fullContent);
                        return(records);
                    }
        }