Пример #1
0
 public static void ReadFromFile()
 {
     Console.WriteLine("Reading URIs from File");
     // Create a empty list of string that will keep the links found in the text file
     foreach (var uri in LinksFileReader())
     {
         BrokenBreaker.GetBrokenLinks(uri);
     }
 }
Пример #2
0
 public static void ReadConsoleInputs()
 {
     string[] URIs;
     Console.WriteLine("Reading console from inputs");
     Console.WriteLine("Please insert the URIs separated by commas");
     URIs = Console.ReadLine().Split(",");
     foreach (var uri in URIs)
     {
         BrokenBreaker.GetBrokenLinks(uri);
     }
 }