コード例 #1
0
        public static void Run(RunComplexType runSettings, Diagnostics diagnostics, string[] args)
        {
            string serverAddress = args[1];
            bool   exists        = SourceServiceUtils.SourceServerExists(serverAddress);

            Console.WriteLine(exists ? "OK: Server Running at {0}" : "NO: Server Not Running at {0}", serverAddress);
        }
コード例 #2
0
        private string FindServer()
        {
            string configuredServer = ConfiguredServer();

            if (configuredServer != "")
            {
                if (!SourceServiceUtils.SourceServerExists(configuredServer))
                {
                    return("");
                }
            }

            return(configuredServer);
        }