Exemple #1
0
 public static async Task<string> DownloadPage(ClientModel value)
 {
     string path = value.GetPath();
     string absolutePath = "ms-appdata:///local/" + path.Replace("\\", "/");
     if (!await StorageHelper.CheckFileExist(path))
     {
         WebRequestAgent request = new WebRequestAgent();
         var res = await request.DownloadAsync(value.serverModel.Href, path);
         if (res.Success)
         {
             return absolutePath;
         }
     }
     else
     {
         return absolutePath;
     }
     return null;
 }