private void PingServer(object state) { mPingTimer.Change(-1, -1); try { Network.NodePing ping = new Network.NodePing(); ping.Name = this.Name; ping.PerformanceInfo = this.Performance.GetInfo(); mServerClient.Send(ping); } catch (Exception e_) { } finally { mPingTimer.Change(1000, 1000); } }
public void Ping(Network.NodePing ping, ISession session) { NodeAgent agent = GetOrCreateNode(ping.Name, session); agent.PerformanceInfo = ping.PerformanceInfo; }