개정판 77cdac33
벽산 수정 후 백업
Change-Id: I8e3eb48f615478a49efa0ab4014a8ef17d273d0a
KCOM/Extensions/DownloadProcess.cs | ||
---|---|---|
52 | 52 |
return result; |
53 | 53 |
} |
54 | 54 |
|
55 |
public static bool FileDownloader(string endpoint,bool isDebug, string OriginalUri, string localPath) |
|
55 |
public static bool FileDownloader(string endpoint,bool isDebug, string OriginalUri, string localPath,bool IsRest)
|
|
56 | 56 |
{ |
57 | 57 |
bool result = false; |
58 | 58 |
|
59 | 59 |
try |
60 | 60 |
{ |
61 |
string processType = IIpc.ProcessTypeDefine.DEFINE_FILE; |
|
62 |
|
|
63 |
if(IsRest) |
|
64 |
{ |
|
65 |
processType = IIpc.ProcessTypeDefine.DEFINE_REST_FILE; |
|
66 |
} |
|
67 |
|
|
61 | 68 |
Process DownloadProcess = new Process(); |
62 | 69 |
|
63 | 70 |
ProcessStartInfo startInfo = new ProcessStartInfo |
... | ... | |
68 | 75 |
CreateNoWindow = true, |
69 | 76 |
ErrorDialog = false, |
70 | 77 |
RedirectStandardError = false, |
71 |
Arguments = $"{IIpc.ProcessTypeDefine.DEFINE_FILE} {endpoint} {isDebug} {System.Web.HttpUtility.UrlEncode(OriginalUri)} {localPath}"
|
|
78 |
Arguments = $"{processType} {endpoint} {isDebug} {System.Web.HttpUtility.UrlEncode(OriginalUri)} {localPath}"
|
|
72 | 79 |
}; |
73 | 80 |
|
74 | 81 |
DownloadProcess.StartInfo = startInfo; |
... | ... | |
105 | 112 |
#if DOWNLOAD_TEST |
106 | 113 |
Arguments = $"{IIpc.ProcessTypeDefine.DEFINE_MONITOR} {isDebug} {Process.GetCurrentProcess().Id} {string.Join(" ",processId)} {thumbnailFolder} {tempFolder} {tempFile} {"http://localhost:44301"}" |
107 | 114 |
#else |
108 |
Arguments = $"{IIpc.ProcessTypeDefine.DEFINE_MONITOR} {isDebug} {Process.GetCurrentProcess().Id} {string.Join(" ",processId)} {thumbnailFolder} {tempFolder} {tempFile} {App.BaseAddress}"
|
|
115 |
Arguments = $"{IIpc.ProcessTypeDefine.DEFINE_MONITOR} {isDebug} {Process.GetCurrentProcess().Id} {string.Join(" ",processId)} {thumbnailFolder} {tempFolder} {tempFile} {App.BaseAddress}" |
|
109 | 116 |
#endif |
110 | 117 |
}; |
111 | 118 |
|
내보내기 Unified diff