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); }
private string FindServer() { string configuredServer = ConfiguredServer(); if (configuredServer != "") { if (!SourceServiceUtils.SourceServerExists(configuredServer)) { return(""); } } return(configuredServer); }