Exemple #1
0
 public string HttpGet(string url, object values)
 {
     url = UriPath.AppendArguments(url, values);
     if (this.Async)
     {
         GetAsync(new Uri(url));
         return(String.Empty);
     }
     else
     {
         return(Get(new Uri(url)));
     }
 }
Exemple #2
0
 public string HttpPostJson(string url, object instance, NameValueCollection data)
 {
     url = UriPath.AppendArguments(url, data);
     if (this.Async)
     {
         PostJsonAsync(new Uri(url), instance);
         return(String.Empty);
     }
     else
     {
         return(PostJson(url, instance));
     }
 }
Exemple #3
0
 public string HttpGet(string url, NameValueCollection data)
 {
     url = UriPath.AppendArguments(url, data);
     if (this.Async)
     {
         GetAsync(new Uri(url));
         return(String.Empty);
     }
     else
     {
         return(Get(new Uri(url)));
     }
 }