示例#1
0
        static void Main(string[] args)
        {
            try
            {
                new IngestionManager().RunNewIngestion();

                var jobs = new List<IPostProcessingJob>
                {
                    new BalancePostProcessingJob(),
                    new BalanceHistoryPostProcessingJob(),
                    new MapBalancePostProcessingJob(),
                    //new MapBalanceHistoryPostProcessingJob(),
                    new MapRaceBalancePostProcessingJob(),
                    new RaceBalancePostProcessingJob()
                };

                var processingManager = new ProcessingManager();
                processingManager.RunUniqueGamesPass();
                processingManager.RunPostProcessingJobs(jobs);
            }
            catch (Exception exception)
            {
                Logger.LogError(exception);
                System.Environment.Exit(exception.HResult);
            }
        }
示例#2
0
        static void Main(string[] args)
        {
            var jobs = new List<IPostProcessingJob>
            {
                new BalancePostProcessingJob(),
                new BalanceHistoryPostProcessingJob(),
                new MapBalancePostProcessingJob(),
                new MapBalanceHistoryPostProcessingJob(),
                new MapRaceBalancePostProcessingJob(),
                new RaceBalancePostProcessingJob()
            };

            var start = DateTime.UtcNow;
            var processingManager = new ProcessingManager();
            processingManager.RunUniqueGamesPass();
            processingManager.RunPostProcessingJobs(jobs);
            var time = DateTime.UtcNow - start;

            Console.WriteLine(time.TotalSeconds);
            Console.ReadLine();
        }