개정판 76dc223b
image 추가 기능 수정
Change-Id: I04ec4985fce7fc6b9922a9b30ca3cab5f71b3728
KCOM/App.xaml.cs | ||
---|---|---|
30 | 30 |
public partial class App : Application |
31 | 31 |
{ |
32 | 32 |
public static PageManager.PageStorage PageStorage; |
33 |
|
|
33 |
public static string BaseAddress; |
|
34 |
public static string FileUploadUri; |
|
34 | 35 |
public static WSHttpBinding _binding; |
35 | 36 |
public static EndpointAddress _EndPoint; |
36 | 37 |
public static EndpointAddress _EndPoint_SaveLoad; |
... | ... | |
63 | 64 |
} |
64 | 65 |
} |
65 | 66 |
|
67 |
public static kr.co.devdoftech.cloud.FileUpload FileUploader |
|
68 |
{ |
|
69 |
get { return new kr.co.devdoftech.cloud.FileUpload{ Url = FileUploadUri }; } |
|
70 |
|
|
71 |
private set {; } |
|
72 |
} |
|
73 |
|
|
66 | 74 |
/// <summary> |
67 | 75 |
/// VisualStudio Design Time여부 |
68 | 76 |
/// </summary> |
... | ... | |
230 | 238 |
//_binding.TextEncoding = System.Text.Encoding.UTF8; |
231 | 239 |
//Support.SetLicense(); |
232 | 240 |
|
233 |
string sBaseServiceURL = string.Empty;//CommonLib.Common.GetConfigString("BaseClientAddress", "URL", ""); |
|
234 |
|
|
235 | 241 |
#if DEBUG |
236 | 242 |
//sBaseServiceURL = CommonLib.Common.GetConfigString("BaseClientAddress", "URL", "", isExternal); |
237 | 243 |
System.Diagnostics.Debug.WriteLine("sBaseServiceURL"); |
238 |
sBaseServiceURL = CommonLib.Common.GetConfigString("BaseClientAddress", "URL", "", isExternal);
|
|
244 |
BaseAddress = CommonLib.Common.GetConfigString("BaseClientAddress", "URL", "", isExternal);
|
|
239 | 245 |
#else |
240 |
sBaseServiceURL = CommonLib.Common.GetConfigString("BaseClientAddress", "URL", "", isExternal);
|
|
246 |
BaseAddress = CommonLib.Common.GetConfigString("BaseClientAddress", "URL", "", isExternal);
|
|
241 | 247 |
#endif |
242 |
App.FileLogger.Debug(string.Format("{0}/ServiceDeepView.svc", sBaseServiceURL)); |
|
243 |
_EndPoint = new EndpointAddress(string.Format("{0}/ServiceDeepView.svc", sBaseServiceURL)); |
|
248 |
|
|
249 |
var UploadAddress = CommonLib.Common.GetConfigString("KCOM_kr_co_devdoftech_cloud_FileUpload", "URL", ""); |
|
250 |
|
|
251 |
if (!string.IsNullOrWhiteSpace(UploadAddress) && !string.IsNullOrWhiteSpace(BaseAddress)) |
|
252 |
{ |
|
253 |
var uri = new UriBuilder(UploadAddress); |
|
254 |
var baseUri = new UriBuilder(BaseAddress); |
|
255 |
|
|
256 |
uri.Host = baseUri.Host; |
|
257 |
uri.Port = baseUri.Port; |
|
258 |
|
|
259 |
FileUploadUri = uri.ToString(); |
|
260 |
} |
|
261 |
|
|
262 |
App.FileLogger.Debug(string.Format("{0}/ServiceDeepView.svc", BaseAddress)); |
|
263 |
_EndPoint = new EndpointAddress(string.Format("{0}/ServiceDeepView.svc", BaseAddress)); |
|
264 |
|
|
265 |
|
|
244 | 266 |
|
245 | 267 |
await SplashScreenAsnyc(); |
246 | 268 |
base.OnStartup(e); |
내보내기 Unified diff