Exemple #1
0
 public string GetName()
 {
     try
     {
         return(monService.GetServerName());
     }
     catch (Exception ex)
     {
         return("");
     }
 }
Exemple #2
0
        /// <summary>
        /// Проверка соединения
        /// </summary>
        public bool TestConnection()
        {
            bool res = _monService.TestConnection();

            if (res)
            {
                //Получаем имя сервера при успешном соединении
                _serverName = _monService.GetServerName();
            }
            return(res);
        }