예제 #1
0
        private static void Main(string[] args)
        {
            if (args.Contains("-debug"))
            {
                Debugger.Launch();
            }

            if (args.Length >= 1 && args[0].ToUpperInvariant() == "DOWNLOAD")
            {
                var downloader = new LogDownloader();
                downloader.ReadArgsDownload(args);
                downloader.DoDownload();
            }
            else if (args.Length >= 1 && args[0].ToUpperInvariant() == "THROTTLINGANALYSIS")
            {
                using (var analyser = new ThrottlingAnalyszer())
                {
                    analyser.ReadArgsThrottlingAnalysis(args);
                    analyser.DoAnalysis();
                }
            }
            else
            {
                GeneralUsage();
                return;
            }
        }
        private static void Main(string[] args)
        {
            if (args.Contains("-debug"))
            {
                Debugger.Launch();
            }

            if (args.Length >= 1 && args[0].ToUpperInvariant() == "DOWNLOAD")
            {
                var downloader = new LogDownloader();
                downloader.ReadArgsDownload(args);
                downloader.DoDownload();
            }
            else if (args.Length >= 1 && args[0].ToUpperInvariant() == "THROTTLINGANALYSIS")
            {
                using (var analyser = new ThrottlingAnalyszer())
                {
                    analyser.ReadArgsThrottlingAnalysis(args);
                    analyser.DoAnalysis();
                }
            }
            else
            {
                GeneralUsage();
                return;
            }
        }