public HtmlParseDetector(
     IHttpClientFactory httpClientFactory,
     ServiceWorkerCodeAnalyzer swAnalyzer,
     ILogger <HtmlParseDetector> logger)
 {
     this.http       = httpClientFactory.CreateClientWithUserAgent();
     this.swAnalyzer = swAnalyzer;
     this.logger     = logger;
 }
Exemple #2
0
 public PuppeteerDetector(
     ILogger <PuppeteerDetector> logger,
     IHttpClientFactory httpClientFactory,
     ServiceWorkerCodeAnalyzer swCodeAnalyzer,
     AnalyticsService analyticsService)
 {
     this.logger           = logger;
     this.http             = httpClientFactory.CreateClientWithUserAgent();
     this.swCodeAnalyzer   = swCodeAnalyzer;
     this.analyticsService = analyticsService;
 }