Ejemplo n.º 1
0
        static int Main(string[] args)
        {
            try
            {
                VersionCheckerCommandLine commandLine = new VersionCheckerCommandLine(args);
                VersionChecker            checker     = new VersionChecker(commandLine.Host, commandLine.Port, commandLine.ServiceIdentity);
                return(checker.Run());
            }
            catch (UsageException ex)
            {
                Console.WriteLine(ex.Message);
                VersionChecker.PrintSyntax();
            }

            return(-2);
        }
Ejemplo n.º 2
0
        static int Main(string[] args)
        {
            try
            {
                VersionCheckerCommandLine commandLine = new VersionCheckerCommandLine(args);
                VersionChecker checker = new VersionChecker(commandLine.Host, commandLine.Port, commandLine.ServiceIdentity);
                return checker.Run();
            }
            catch (UsageException ex)
            {
                Console.WriteLine(ex.Message);
                VersionChecker.PrintSyntax();
            }

            return -2;
        }