Esempio n. 1
0
        public static int Main(String[] args)
        {
            try
            {
                ValidateUICulture();

                PrintBanner();

                ConsoleEntryPoint tool = new ConsoleEntryPoint(args);
                tool.Run();
                return 0;
            }
            catch (WsatAdminException wsatEx)
            {
                Console.WriteLine();
                Console.WriteLine(wsatEx.Message);
                return (int)wsatEx.ErrorCode;
            }
#pragma warning suppress 56500
            catch (Exception e)
            {
                Console.WriteLine(SR.GetString(SR.UnexpectedError, e.Message));
                return (int)WsatAdminErrorCode.UNEXPECTED_ERROR;
            }
        }
Esempio n. 2
0
        public static int Main(String[] args)
        {
            try
            {
                ValidateUICulture();

                PrintBanner();

                ConsoleEntryPoint tool = new ConsoleEntryPoint(args);
                tool.Run();
                return(0);
            }
            catch (WsatAdminException wsatEx)
            {
                Console.WriteLine();
                Console.WriteLine(wsatEx.Message);
                return((int)wsatEx.ErrorCode);
            }
#pragma warning suppress 56500
            catch (Exception e)
            {
                Console.WriteLine(SR.GetString(SR.UnexpectedError, e.Message));
                return((int)WsatAdminErrorCode.UNEXPECTED_ERROR);
            }
        }