public MonitorOutput GetSystemInfo() { MonitorOutput monitorOutput = new MonitorOutput() { CPUInfo = CPUInfo.GetCPUInfo(), MemInfo = MemoryInfo.GetMemInfo(), TCPCount = TCPInfo.GetTCPCount() }; return(monitorOutput); }
public void GetMonitorInfo() { MonitorOutput monitorOutput = new MonitorOutput() { CPUInfo = CPUInfo.GetCPUInfo(), MemInfo = MemoryInfo.GetMemInfo(), TCPCount = TCPInfo.GetTCPCount(), OnlineCount = OnlineInfo.GetOnlineCount() }; Clients.All.getMonitorInfo(monitorOutput); }