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); } }
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); } }