Ejemplo n.º 1
0
 /// <summary> 获得指定下载包的完整路径 </summary>
 /// <param name="packageName" type="string">文件名</param>
 /// <returns>完整路径</returns>
 public string GetUpdatePackageFullUrl(string packageName)
 {
     if (!string.IsNullOrEmpty(UpdateInfoFileName))
     {
         return(string.Format(UpdateDownloadUrl.Replace("\\", "\\\\"), packageName));
     }
     return(UpdateDownloadUrl.Substring(0, UpdateDownloadUrl.LastIndexOf("/") + 1) + packageName);
 }
Ejemplo n.º 2
0
 /// <summary> 获得指定下载包的完整路径 </summary>
 /// <param name="packageName" type="string">文件名</param>
 /// <returns>完整路径</returns>
 public string GetUpdatePackageFullUrl(string packageName)
 {
     return(string.Format(UpdateDownloadUrl.Replace("\\", "\\\\"), packageName));
 }