Example #1
0
        /// <summary>
        /// Main entry point for the application process execution.
        /// </summary>
        /// <param name="arguments">A collection of arguments provided by a command-line interface.</param>
        public static void Main(string[] arguments)
        {
            try
            {
                var context = new RunCommandApplicationContext(APPLICATION_CONTEXT_PATH);
                var application = new RunCommandConsoleApplication(context, arguments);

                application.Run();
            }
            catch (Exception ex)
            {
                ConsoleHelper.WriteLine(ConsoleMessageType.Error, ex.Message);
            }
        }
Example #2
0
        /// <summary>
        /// Main entry point for the application process execution.
        /// </summary>
        /// <param name="arguments">A collection of arguments provided by a command-line interface.</param>
        public static void Main(string[] arguments)
        {
            try
            {
                var context     = new RunCommandApplicationContext(APPLICATION_CONTEXT_PATH);
                var application = new RunCommandConsoleApplication(context, arguments);

                application.Run();
            }
            catch (Exception ex)
            {
                ConsoleHelper.WriteLine(ConsoleMessageType.Error, ex.Message);
            }
        }