'I want to implement pause and resume feature in my downloader in c# how can I do that?
I am developing a Download Manager in that I want to add pause and resume feature how can I do that? I am using webclient, I was trying to use CancelAsync Method but it is not working. So how I can do that? I am providing my code.
public void download(string link, string path)
{
uri = new Uri(link);
String FileName = System.IO.Path.GetFileName(uri.AbsolutePath);
client.DownloadFileAsync(uri, path +@"\" + FileName);
client.DownloadProgressChanged += downloadprogress;
}
How can I implement Pause and resume feature?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
