示例#1
0
 public void HttpInvoke(SupportedHttpMethods httpMethod, string url, string content)
 {
     using (var httpClass = new HttpClass(httpMethod, url, content))
        {
     httpClass.Invoke();
        }
 }
示例#2
0
 public string GetHttpContent(string url)
 {
     string content;
        using (var httpClass = new HttpClass(SupportedHttpMethods.GET, url))
        {
     httpClass.Invoke();
     content = httpClass.GetResponseContent();
        }
        return content;
 }
示例#3
0
        public HttpResponseMessage GetHttpResponseMessage(SupportedHttpMethods httpMethod, string url)
        {
            HttpResponseMessage _response;

               using (var httpClass = new HttpClass(httpMethod, url))
               {
            httpClass.Invoke();
            _response = httpClass.GetHttpResponseMessage();
               }

               return _response;
        }