C#代码下载文件 [英] C# code to download file
问题描述
我有3个网址
Ex:
1.YouTube.com
2.Google。 com $ / $
3.CodeProject.com
从这里我从每个URL下载数据。
如果我downLoad 1GB的数据,其他2个URL会自动停止下载。
这个只是告诉我我要做的就是在每个URL之间进行通信。
示例代码非常感谢..
我的尝试:
我尝试使用线程。
但很难在线程之间中断线程和线程通信。
< blockquote>请检查以下解决方案。这应该是一个很好的起点。对于您的功能,如限制其他下载,如果1正在进行中,可以在查看URL中提到的示例后实现。\
MyDownloader:多线程C#分段下载管理器 [ ^ ]
I Have 3 URLs
Ex :
1.YouTube.com
2.Google.com
3.CodeProject.com
From here i am downloading data from each URL.
If I downLoad 1GB of data , other 2 URL automatically stops downloading.
for this just tel me what i have to do to communicate between each URL.
Sample code highly appreciated..
What I have tried:
I tried with threading.
but aborting threading and thread communication between the thread is difficult.
Please check the below solution.This should be a good starting point.For your functionality like restricting other downloads if 1 is in progress that can be achieved after looking into the sample mentioned in URL.\
MyDownloader: A Multi-thread C# Segmented Download Manager[^]
这篇关于C#代码下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!