static void Main(string[] args) { int counter = 0; string line; using (StreamReader sr = ReadListUrl()) { while ((line = sr.ReadLine()) != null) { try { string baseUrl = new UriBuilder(line).ToString(); ProcessURL.Instance().AnalyzeURL(baseUrl); } catch (UriFormatException e) { Console.WriteLine(e.Message + " URL: " + line); } counter++; } } Console.ReadKey(); }
static ProcessURL() { _instance = new ProcessURL(); }