liuhj1018
liuhj1018
if (File.Exists(processFile)) { string content = File.ReadAllText(processFile); var newPack = JsonConvert.DeserializeObject(content); await downloader.DownloadFileTaskAsync(newPack); } else { await downloader.DownloadFileTaskAsync(url, tempFile); }
> Do you stop the Downloader process with the method and then exit from your app or reboot it? I ask this question because this issue didn't happen before this...
I want to write the **Package** to the local file using "var packageJson = JsonConvert.SerializeObject(package);". But Where I put the sentence? **OnDownloadProgressChanged** or **OnChunkDownloadProgressChanged** method?
two problems: 1. packageBackup.json write conflict. File.**WriteAllTextAsync**("packageBackup.json", packageJson); 2. Restart program, downloading file write conflict. Need add Storage null judgment in the **DownloadPackage.cs**. 
1.packageBackup.json write conflict. I had used locking object method first, but its efficiency was low. So now I use File.WriteAllTextAsync method. 2.When I generate the local backup.json file, shutdown the...