Skip to content
Permalink
Browse files
Fixed bad example of ImplementationOverride [skip ci]
  • Loading branch information
sjdirect committed May 3, 2020
1 parent 8ff4255 commit 2f1a92b327a9d23c4c7f9527d7ced62e36a7121b
Showing 1 changed file with 8 additions and 6 deletions.
@@ -181,14 +181,16 @@ namespace AbotX2.Demo
var config = GetSafeConfig();
config.MaxConcurrentSiteCrawls = 3;
var crawlEngine = new ParallelCrawlerEngine(
config,
new ParallelImplementationOverride(config)
{
SiteToCrawlProvider = siteToCrawlProvider,
WebCrawlerFactory = new WebCrawlerFactory(config)//Same config will be used for every crawler instance created
});
new ParallelImplementationOverride(config,
new ParallelImplementationContainer()
{
SiteToCrawlProvider = siteToCrawlProvider,
WebCrawlerFactory = new WebCrawlerFactory(config)//Same config will be used for every crawler
})
);
var crawlCounts = new Dictionary<Guid, int>();
var siteStartingEvents = 0;

0 comments on commit 2f1a92b

Please sign in to comment.