개정판 5928384e
issue #000 ini 에서 Config 를 읽는 Commonlib 추가. 별도로 soap api 를 Connection 하는 부분을 BaseClient Static Class 를 참조하도록 수정.
Change-Id: I54563f8e7e368ace8d50f9fef6a57e6995812a47
MarkupToPDF/Common/GetUserSign.cs | ||
---|---|---|
25 | 25 |
} |
26 | 26 |
} |
27 | 27 |
|
28 |
[DllImport("kernel32")] |
|
29 |
private static extern int GetPrivateProfileString(string section, string key, string def, StringBuilder retVal, int size, string filePath); |
|
30 |
|
|
28 |
|
|
31 | 29 |
/// <summary> |
32 | 30 |
/// get signature of given user of given project |
33 | 31 |
/// </summary> |
... | ... | |
49 | 47 |
_binding.TextEncoding = System.Text.Encoding.UTF8; |
50 | 48 |
_binding.TransferMode = TransferMode.Buffered; |
51 | 49 |
|
52 |
StringBuilder BaseClientAddress = new StringBuilder(512); |
|
53 |
GetPrivateProfileString("BaseClientAddress", "URL", "(NONE)", BaseClientAddress, 512, Path.Combine(AppDataFolder, "MARKUS.ini")); |
|
54 |
|
|
55 |
//string sBaseServiceURL = global::MarkupToPDF.Properties.Settings.Default.BaseClientAddress; |
|
56 |
string sBaseServiceURL = BaseClientAddress.ToString(); |
|
50 |
string sBaseServiceURL = CommonLib.Common.GetConfigString("BaseClientAddress", "URL", ""); |
|
57 | 51 |
|
58 | 52 |
_EndPoint = new EndpointAddress(string.Format("{0}/ServiceDeepView.svc", sBaseServiceURL)); |
59 | 53 |
|
내보내기 Unified diff