public static T Request <T>(this HttpWebRequestUtility requestUtility)
        {
            var result = requestUtility.Request();
            var data   = Newtonsoft.Json.JsonConvert.DeserializeObject <T>(result);

            return(data);
        }
Esempio n. 2
0
        internal virtual string Request(HttpWebRequestOption option, int requestType)
        {
            var paramters = CreateHttpRequest(requestType);

            HttpWebRequestUtility httpWebRequestUtility =
                new HttpWebRequestUtility(option, paramters);

            var result = httpWebRequestUtility.Request();

            return(result);
        }