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); }
public virtual AuditResult AuditFromSitemapUrl(string sitemapUrl) { var map = new Sitemap(sitemapUrl); return(AuditSiteFromSiteMap(map).Result); }