コード例 #1
0
ファイル: Program.cs プロジェクト: malarcs/moviemirchi
        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();
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: viren85/moviemirchi
        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();
        }