async Task <PageTestedResult> TestPage(CrawledPage page) { var res = new PageTestedResult(page); var resList = await LoadStopwatch.LoadSeveralTimes(page.Uri, Context.TestOptions.PageReloadNumber, Context.CancellationTokenSource.Token).ConfigureAwait(false); res.Measurements = resList; return(res); }
protected virtual void OnPageTested(PageTestedResult result) { PageTestedAsync.SafeInvoke(this, new PageTestedArg(result, Context)); }
void PageTestСompleted(PageTestedResult res) { IncreaseTestedPageCount(); OnPageTested(res); }