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?