Exemple #1
0
        static void Main(string[] args)
        {
            string apiurl = GetURL(args, 0, APIUrl);
            string weburl = GetURL(args, 1, WebUrl);

            Console.WriteLine("APIUrl is {1}{0}WebUrl is {2}{0}", Environment.NewLine, apiurl, weburl);

            var hits  = new SetupHitMonkey(apiurl, weburl);
            var cache = new SetupCacheMonkey(apiurl, weburl);

            var monkeys = new IMonkey[] {
                hits.HitProductAPIs(),
                cache.CacheMoviePage(),
                cache.CacheArtistPage(),
                hits.HitReviewerPage(),
                hits.HitGenrePage(),
            };

            foreach (IMonkey monkey in monkeys)
            {
                monkey.Jump();
            }

            ResultCollection.Stats();
            ResultCollection.GenerateSitemap(
                WebUrl,
                filePath: "sitemap.xml",
                seedUrl: SeedUrl
                );
            ResultCollection.SendMail();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            string apiurl = GetURL(args, 0, APIUrl);
            string weburl = GetURL(args, 1, WebUrl);
            Console.WriteLine("APIUrl is {1}{0}WebUrl is {2}{0}", Environment.NewLine, apiurl, weburl);

            var hits = new SetupHitMonkey(apiurl, weburl);
            var cache = new SetupCacheMonkey(apiurl, weburl);

            var monkeys = new IMonkey[] {
                hits.HitProductAPIs(),
                cache.CacheMoviePage(),
                cache.CacheArtistPage(),
                hits.HitReviewerPage(),
                hits.HitGenrePage(),
            };
            foreach (IMonkey monkey in monkeys)
            {
                monkey.Jump();
            }

            ResultCollection.Stats();
            ResultCollection.GenerateSitemap(
                WebUrl,
                filePath: "sitemap.xml",
                seedUrl: SeedUrl
            );
            ResultCollection.SendMail();
        }