private void timer_Elapsed(object sender, System.Timers.ElapsedEventArgs e) { try { ServerNode.HeartBeat(); } catch (Exception ex) { //立即重启服务 InitServiceConnect(); } //throw new NotImplementedException(); }