Exemple #1
0
        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();
        }
Exemple #2
0
 static ProcessURL()
 {
     _instance = new ProcessURL();
 }