示例#1
0
        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);
        }
示例#2
0
 protected virtual void OnPageTested(PageTestedResult result)
 {
     PageTestedAsync.SafeInvoke(this, new PageTestedArg(result, Context));
 }
示例#3
0
 void PageTestСompleted(PageTestedResult res)
 {
     IncreaseTestedPageCount();
     OnPageTested(res);
 }