コード例 #1
0
        protected override void ProcessAllPages(IEnumerable <string> pages, string filePattern, string targetFolder)
        {
            var pageDownloadService = new DhtnmthcmPageDownloadService();

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

                pageDownloadService.Download(options);
            }
        }
コード例 #2
0
        protected override void ProcessAllPages(IEnumerable<string> pages, string filePattern, string targetFolder)
        {
            var pageDownloadService = new DhtnmthcmPageDownloadService();

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

                pageDownloadService.Download(options);
            }
        }