/// <summary>
 /// 健康检查
 /// </summary>
 /// <param name="configServer"></param>
 private async Task HealthAsync(ConfigServerModel configServer)
 {
     try
     {
         await _configServerRepository.HealthAsync(configServer.Address);
     }
     catch (Exception)
     {
         _configServers.Remove(configServer.Name, out ConfigServerModel client);
         var ex = new MateralConfigCenterException($"健康检查失败,配置服务{client.Name}({client.Address})已注销,当前配置服务数量{_configServers.Count}");
         ConsoleHelper.ServerWriteError(ex);
     }
 }
Example #2
0
 protected ConfigServerFacade(ConfigServerModel model) : base(model)
 {
 }