Exemplo n.º 1
0
        public static void Search(string URL, Action <Entry> AddEntry)
        {
            var t = new BasicTinyURLCrawler
            {
            };

            t.AddEntry +=
                entry =>
            {
                entry.URL = URL;

                if (AddEntry != null)
                {
                    AddEntry(entry);
                }
            };

            t.Search(URL);
        }
        public static void Search(string URL, Action<Entry> AddEntry)
        {
            var t = new BasicTinyURLCrawler
            {
            };

            t.AddEntry +=
                entry =>
                {
                    entry.URL = URL;

                    if (AddEntry != null)
                        AddEntry(entry);
                };

            t.Search(URL);
        }