Beispiel #1
0
 /// <summary>
 /// 创建接口服务请求器
 /// </summary>
 /// <param name="arg">请求参数对象</param>
 public HttpHelper(HttpArguments arg)
 {
     _args = arg;
 }
Beispiel #2
0
 /// <summary>
 /// 创建接口服务请求器
 /// </summary>
 /// <param name="arg">请求参数对象</param>
 /// <returns></returns>
 public static HttpHelper CreateInstance(HttpArguments arg)
 {
     return(new HttpHelper(arg));
 }
Beispiel #3
0
 /// <summary>
 /// 创建接口服务请求器
 /// </summary>
 /// <param name="uri">服务接口 uri</param>
 public HttpHelper(string uri)
 {
     _args      = new HttpArguments(uri);
     HeaderData = new Dictionary <string, string>();
 }