Esempio n. 1
0
        public virtual async Task <AuditResult> AuditSiteFromSiteMap(Sitemap siteMap)
        {
            var pageResultTasks = new List <Task <PageCheckResult> >();

            siteMap.Urls.ToList().ForEach(su => pageResultTasks.Add(GetPageResult(su)));

            await Task.WhenAll(pageResultTasks);

            var result = new AuditResult();

            result.AddPageCheckResults(pageResultTasks.Select(prt => prt.Result));

            return(result);
        }
Esempio n. 2
0
        public virtual AuditResult AuditFromSitemapUrl(string sitemapUrl)
        {
            var map = new Sitemap(sitemapUrl);

            return(AuditSiteFromSiteMap(map).Result);
        }