Good day, I implemented the download system on the webclient, it was simple, I wanted to do it on AltoHttp, nothing works, do you have any solutions
using (WebClient wc = new WebClient())
{
wc.DownloadProgressChanged += Wc_DownloadProgressChanged;
foreach (var fileName in downloadProvider.Files)
{
CreateNeccessaryDirs(path + @"\" + fileName.Value);
if (File.Exists(path + @"\" + fileName.Value))
{
continue;
}
prevDownloadedSize = 0L;
StartDownload?.Invoke(this, new StartDownloadFileArgs { FileName = fileName.Value });
stopwatch.Restart();
await wc.DownloadFileTaskAsync(new Uri(master_url + "/" + fileName.Key), path + @"\" + fileName.Value);
stopwatch.Stop();
}
ProgressChanged?.Invoke(this, new Events.DownloadProgressChangedEventArgs() { NewPercentage = 100 });
}