Esempio n. 1
0
 public void ProcessURL(string URL)
 {
     try
     {
         URL = URL.ToLower();
         VisitedLinks.Add(URL);
         if (URL.EndsWith("txt"))
         {
             ProcessTxt(URL);
         }
         else if (URL.EndsWith("xml"))
         {
             ProcessXML(URL);
         }
         else
         {
             ProcessHTML(URL);
         }
     }
     catch (Exception ex)
     {
         CloudQueueMessage error = new CloudQueueMessage(URL);
         CloudConfiguration.GetErrorQueue().AddMessage(error);
     }
 }
Esempio n. 2
0
 public void ProcessURL(string URL)
 {
     URL = URL.ToLower();
     VisitedLinks.Add(URL);
     if (URL.EndsWith("txt"))
     {
         ProcessTxt(URL);
     }
     else if (URL.EndsWith("xml"))
     {
         ProcessXML(URL);
     }
     else
     {
         ProcessHTML(URL);
     }
 }