There is a list of URLs that vary with each program launch. List<FileInfo> URLs = new List<FileInfo>();
public class FileInfo{ public string FileURL {get;set;} public string FilePath {get;set;} public string Hash {get;set;} } We go through foreach through the list and cache the files for availability, if they do not match the standards, we load.
Is it possible to somehow make it so that it would run down the stream on each object of the list, so that they would all be hashed and downloaded asynchronously, and that program execution would continue only after they all loaded? PS I suppose that this can be done through TaskFactory, but I could not implement this.
Dataflow, implemented it and the loading process began to work many times faster and more intelligently. So I advise ;-) - EvgeniyZ