This method i am using for concurrent downloads.
public void DownloadConcurrent(Action Method)
{
Action[] methodList = new Action[Concurent_Downloads];
for (int i = 0; i < Concurent_Downloads; i++)
{
methodList[i] = Method;
}
Parallel.Invoke(methodList);
}
I am trying to download urls simultaneously, but the No. of active downloads is always one.
like all the downloads will invoke, but only one url will start downloading data, not like all will start progressing the downloads.
I want all downloads to work parallel same time, unable to achieve that.
Update: the methord is using a Queue, it is downloading diffrent urls, form the queue.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…