protected override void Process(ProcessorArgs args)
        {
            var download = (DownloadArgs)args;

            foreach (var link in download.Links)
            {
                download.FileNames[link] = WebRequestHelper.GetFileName(link, download.Cookies);
            }
        }
 public Download8Args([NotNull] string cookies, [NotNull] ReadOnlyCollection <Uri> links, [NotNull] string localRepository)
 {
     Assert.ArgumentNotNull(cookies, nameof(cookies));
     Assert.ArgumentNotNull(links, nameof(links));
     Assert.ArgumentNotNull(localRepository, nameof(localRepository));
     this.LocalRepository = localRepository;
     this.Links           = links;
     this.Cookies         = cookies;
     this.FileNames       = new UriBasedCollection <string>(links.ToDictionary(x => x, x => WebRequestHelper.GetFileName(x, cookies)));
 }