Ejemplo n.º 1
0
        protected void Execute(VisitContext context, string url)
        {
            var wc = context.WebClient;
            if (wc != null)
            {
                //System.Console.Out.WriteLine(url);
                try
                {
                    context.LastResponse = wc.DownloadString(url);
                }
                catch (WebException wex)
                {
                    var r = wex.Response as HttpWebResponse;
                    if (r == null || r.StatusCode != HttpStatusCode.NotFound)
                    {
                        throw;
                    }
                }
            }

            context.ConvertGoals();
        }