public bool ValidateParameters() { if (string.IsNullOrEmpty(BridgeId)) { OutputProvider.WriteErrorLine("Error: Bridge-id not specified."); return(false); } if (string.IsNullOrEmpty(CacheName)) { OutputProvider.WriteErrorLine("Error: Cache-id not specified."); return(false); } bool multipleServers = false; if (CacheServer != null || CacheServer != string.Empty) { _serverList = CacheServer.Split(','); if (_serverList.Length > 1 || (_serverList[0].Contains(":"))) { multipleServers = true; } } VerifyCacheServer(multipleServers); ToolsUtil.PrintLogo(OutputProvider, printLogo, TOOLNAME); return(true); }
public bool ValidateParameters() { _bridgeService.Port = Port; _bridgeService.ServerName = BridgeServer; if (Port == -1) { _bridgeService.Port = _bridgeService.UseTcp ? BridgeConfigurationManager.NCacheTcpPort : BridgeConfigurationManager.NCacheHttpPort; } if (string.IsNullOrEmpty(BridgeId)) { OutputProvider.WriteErrorLine("Error: Bridge-id not specified."); return(false); } if (string.IsNullOrEmpty(CacheName)) { OutputProvider.WriteErrorLine("Error: Cache-id not specified."); return(false); } bool multipleServers = false; if (CacheServer != null || CacheServer != string.Empty) { _serverList = CacheServer.Split(','); if (_serverList.Length > 1 || (_serverList[0].Contains(":"))) { multipleServers = true; } } VerifyCacheServer(multipleServers); ToolsUtil.PrintLogo(OutputProvider, printLogo, TOOLNAME); return(true); }