Exemple #1
0
        protected override void ProcessAllPages(IEnumerable <string> pages, string filePattern, string targetFolder)
        {
            var pageDownloadService = new DhdlPageDownloadService();

            foreach (var pageLink in pages)
            {
                var options = new DownloadServiceOption()
                {
                    TargetFolder    = targetFolder,
                    UrlsAndPatterns = new Dictionary <string, string>()
                    {
                        { pageLink, filePattern }
                    }
                };

                pageDownloadService.Download(options);
            }
        }
        protected override void ProcessAllPages(IEnumerable<string> pages, string filePattern, string targetFolder)
        {
            var pageDownloadService = new DhdlPageDownloadService();

            foreach (var pageLink in pages)
            {
                var options = new DownloadServiceOption()
                {
                    TargetFolder = targetFolder,
                    UrlsAndPatterns = new Dictionary<string, string>()
                    {
                        {pageLink, filePattern}
                    }
                };

                pageDownloadService.Download(options);
            }
        }