예제 #1
0
        public static ObservableResult CreateFromCrawlingResult(CrawlingResult result)
        {
            ObservableResult ci = new ObservableResult();

            ci.Title = result.RootURL;
            foreach (var nestedResults in result.Children)
            {
                ci.Items.Add(CreateFromCrawlingResult(nestedResults));
            }
            return(ci);
        }
예제 #2
0
 internal async Task <ObservableResult> CrawlAndAdaptResultAsync()
 {
     return(ObservableResult.CreateFromCrawlingResult(
                await crawler.PerformCrawlingAsync(reader.UrlsToCrawl)));
 }