Exemple #1
0
        static int Main(string[] args)
        {
            using (var interactiveTaskRunner = new CommandLineTaskRunner())
            {
                try
                {
                    LogProvider.SetCurrentLogProvider(new ColouredConsoleLogProvider(LogLevel.Info));

                    var main = interactiveTaskRunner.Run();
                    Console.ReadLine();
                    return main;
                }
                catch (Exception e)
                {
                    Console.WriteLine(e);
                    Console.ReadLine();
                    return 1;
                }
            }
        }
Exemple #2
0
        static int Main(string[] args)
        {
            using (var interactiveTaskRunner = new CommandLineTaskRunner())
            {
                try
                {
                    /*Logger.Configure(LoggerFactory.)
                     * LogProvider.SetCurrentLogProvider(new ColouredConsoleLogProvider(LogLevel.Info));*/

                    var main = interactiveTaskRunner.Run();
                    Console.ReadLine();
                    return(main);
                }
                catch (Exception e)
                {
                    Console.WriteLine(e);
                    Console.ReadLine();
                    return(1);
                }
            }
        }