public void Scan(string urlToScan) { if (!spider.Start(urlToScan)) { return; } do { Thread.Sleep(sleepTimeBetweenRequests); }while (!spider.HasCompleted()); if (!scanner.Scan(urlToScan)) { return; } do { Thread.Sleep(sleepTimeBetweenRequests); }while (!scanner.HasCompleted()); logger.Log("Scan complete"); }