Пример #1
0
        public MonitorOutput GetSystemInfo()
        {
            MonitorOutput monitorOutput = new MonitorOutput()
            {
                CPUInfo  = CPUInfo.GetCPUInfo(),
                MemInfo  = MemoryInfo.GetMemInfo(),
                TCPCount = TCPInfo.GetTCPCount()
            };

            return(monitorOutput);
        }
Пример #2
0
        public void GetMonitorInfo()
        {
            MonitorOutput monitorOutput = new MonitorOutput()
            {
                CPUInfo     = CPUInfo.GetCPUInfo(),
                MemInfo     = MemoryInfo.GetMemInfo(),
                TCPCount    = TCPInfo.GetTCPCount(),
                OnlineCount = OnlineInfo.GetOnlineCount()
            };

            Clients.All.getMonitorInfo(monitorOutput);
        }