namespace TProduct.HttpClient
|
{
|
public class HttpClientHelper
|
{
|
public static string Build(string controller, string cmd)
|
{
|
var url = string.Format("{0}/{1}/{2}",
|
TProduct.CorpConfig.Instance.RealTimeRemoteService.WebApiUrl,
|
controller,
|
cmd);
|
return url;
|
}
|
|
public static string Build(string controller, string cmd, long testProjectId)
|
{
|
var url = string.Format("{0}/{1}/{2}",
|
TProduct.CorpConfig.Instance.RealTimeRemoteService.WebApiUrl,
|
controller,
|
cmd);
|
|
/* var dict = new Dictionary<string, string>();
|
dict.Add("DbType", TProduct.CorpConfig.Instance.RealTimeRemoteService.PortName);
|
dict.Add("TestProjectID", testProjectId.ToString());*/
|
|
/*Dictionary<string, string> dict = new Dictionary<string, string>();
|
dict.Add("PortName", TProduct.CorpConfig.Instance.RealTimeRemoteService.PortName);
|
dict.Add("TestProjectID", testProjectId.ToString());
|
IFlurlRequest request = url.WithHeaders(dict, false);*/
|
return url;
|
}
|
|
}
|
}
|