Beispiel #1
0
 private static void RunMinifier(CommandLineOptions cmdLineOptions)
 {
     Console.WriteLine("Monitoring dir " + cmdLineOptions.ItemsToProcessDirectory);
         var minMgr = new MinifierManager(cmdLineOptions);
         minMgr.Run();
         if (cmdLineOptions.StartListener) {
             Console.WriteLine("Press Enter to quit at any time.");
             do {
                 while (!Console.KeyAvailable) {
                     System.Threading.Thread.Sleep(1000);
                     minMgr.ProcessQueue();
                 }
             } while (Console.ReadKey(intercept: true).Key != ConsoleKey.Enter);
        }
 }
Beispiel #2
0
        private static void RunMinifier(CommandLineOptions cmdLineOptions)
        {
            Console.WriteLine("Monitoring dir " + cmdLineOptions.ItemsToProcessDirectory);
            var minMgr = new MinifierManager(cmdLineOptions);

            minMgr.Run();
            if (cmdLineOptions.StartListener)
            {
                Console.WriteLine("Press Enter to quit at any time.");
                do
                {
                    while (!Console.KeyAvailable)
                    {
                        System.Threading.Thread.Sleep(1000);
                        minMgr.ProcessQueue();
                    }
                } while (Console.ReadKey(intercept: true).Key != ConsoleKey.Enter);
            }
        }