Ejemplo n.º 1
0
        public static ApiResult <TResult> Call <TResult, TData>(string domain, string controller, string action, TData data, ApiHttpMethod method = 0, int timeout = 180000)
        {
            domain = domain.TrimEnd('/') + "/";
            ApiResult <TResult> apiResult = ProxyBase.Call <TResult, TData>(string.Format("{0}{1}/{2}", domain, controller, action), data, method, timeout, null);

            return(apiResult);
        }
Ejemplo n.º 2
0
 public static ApiResult <TResult> Get <TResult>(string url)
 {
     return(ProxyBase.Call <TResult, object>(url, null, ApiHttpMethod.GET, 180000, null));
 }