Decrease download speed in DownloadFileAsync

  • Thread starter Thread starter Ayub1987
  • Start date Start date
A

Ayub1987

Guest
This is my code:

using var client = new WebClient();
client.
DownloadFileAsync(new Uri("https://speed.hetzner.de/10GB.bin"), "10GB.bin");


All I want is, when another user connects to the modem / router via wifi and starts listening music on Spotify or another usages, which need bandwidth, the method DownloadFileAsync decreases download speed until he/she is using bandwidth and increase it again when nobody is using bandwidth for a period.

Continue reading...
 
Back
Top