개정판 5928384e
issue #000 ini 에서 Config 를 읽는 Commonlib 추가. 별도로 soap api 를 Connection 하는 부분을 BaseClient Static Class 를 참조하도록 수정.
Change-Id: I54563f8e7e368ace8d50f9fef6a57e6995812a47
KCOM/App.xaml.cs | ||
---|---|---|
69 | 69 |
} |
70 | 70 |
} |
71 | 71 |
|
72 |
[DllImport("kernel32")] |
|
73 |
private static extern int GetPrivateProfileString(string section, string key, string def, StringBuilder retVal, int size, string filePath); |
|
74 |
|
|
72 |
|
|
75 | 73 |
public static RestSharp.RestClient BaseClient { get; set; } |
76 | 74 |
public static IKCOM.KCOM_SystemInfo SystemInfo { get; set; } |
77 | 75 |
private static OpenProperties ParamDecoding(string DecodingText, System.Text.Encoding oEncoding = null) |
... | ... | |
163 | 161 |
_binding.TextEncoding = System.Text.Encoding.UTF8; |
164 | 162 |
_binding.TransferMode = TransferMode.Buffered; |
165 | 163 |
//Support.SetLicense(); |
166 |
|
|
167 |
StringBuilder BaseClientAddress = new StringBuilder(512); |
|
168 |
GetPrivateProfileString("BaseClientAddress", "URL", "(NONE)", BaseClientAddress, 512, Path.Combine(AppDataFolder, "MARKUS.ini")); |
|
169 |
|
|
170 |
//string sBaseServiceURL = global::KCOM.Properties.Settings.Default.BaseClientAddress; |
|
171 |
string sBaseServiceURL = BaseClientAddress.ToString(); |
|
164 |
|
|
165 |
string sBaseServiceURL = CommonLib.Common.GetConfigString("BaseClientAddress", "URL", ""); |
|
172 | 166 |
|
173 | 167 |
var ipaddress = DNSHelper.GetDnsAdress(); |
174 | 168 |
|
내보내기 Unified diff