??????????????и?????????????????
???????????? ???????[ 2015/4/23 10:31:51 ] ??????????????? ?? ???
???????????????????????????????????????????????????????????????????????????????????????????
/// <summary>
/// ?????????????????????
/// </summary>
private void chkLocalVersion_CheckedChanged(object sender?? EventArgs e)
{
SetAccessType(this.chkLocalVersion.Checked);
}
/// <summary>
/// ????????緽????????????
/// </summary>
/// <param name="localType">????????????</param>
private void SetAccessType(bool localType)
{
this.lblNetType.Enabled = !localType;
this.radNetType.Enabled = !localType;
AppConfig config = new AppConfig();
config.AppConfigSet("CallerType"?? localType ? "win" : "wcf");
ConfigurationManager.RefreshSection("appSettings");
}
????????????緽??????????????????????????????????????????????????????????????????????????????????
/// <summary>
/// ???緽????????????????л????????
/// </summary>
private void radNetType_SelectedIndexChanged(object sender?? EventArgs e)
{
ChangeConfig();
}
/// <summary>
/// ??????????
/// </summary>
private void ChangeConfig()
{
if (parameter != null)
{
bool isIntranet = radNetType.EditValue.ToString() == "????";
if (isIntranet)
{
UpdateConfig(parameter.InternalWcfHost?? parameter.InternalWcfPort);
}
else
{
UpdateConfig(parameter.ExternalWcfHost?? parameter.ExternalWcfPort);
}
}
else
{
MessageDxUtil.ShowError("?????????????");
}
}
/// <summary>
/// WCF???£????????????е???????????????
/// </summary>
/// <param name="serverIPAddress">??????????</param>
/// <param name="serverPort">???</param>
private void UpdateConfig(string serverIPAddress?? int serverPort)
{
string basePath = System.Environment.CurrentDirectory;
UpdateConfigFile(serverIPAddress?? serverPort?? Path.Combine(basePath?? "BaseWcfConfig.config"));
UpdateConfigFile(serverIPAddress?? serverPort?? Path.Combine(basePath?? "WcfConfig.config"));
}
/// <summary>
/// ?????????????滻???е???????????????
/// </summary>
/// <param name="serverIPAddress">??????????</param>
/// <param name="serverPort">???</param>
/// <param name="exeFilePath">??????????</param>
private void UpdateConfigFile(string serverIPAddress?? int serverPort?? string exeFilePath)
{
string address = File.ReadAllText(exeFilePath?? System.Text.Encoding.UTF8);
string pattern = "://.*?/";
string replacement = string.Format("://{0}:{1}/"?? serverIPAddress?? serverPort);
address = Regex.Replace(address?? pattern?? replacement);
File.WriteAllText(exeFilePath?? address?? System.Text.Encoding.UTF8);
}
??????????????????????????????????????????е??????????????????????????????а?????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
??????????????????ù????????ù?????????????????????????????з????????????????ù????е?SVN???ù????????????汾????????cmmi???ù??????ù?????????????ù???????????(2)???ù???????????(1)SCM??????ù???????????????ù??????????????????????е????ù??????????????ù??????ù????????????汾?????????????????ù???Nginx???ù??? - ???????DCMP??????etcd?????ù?????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????