public void Update(IWebApiServerState data) { this.Description = data.Description; this.OSInfo = data.OSInfo; this.TotalPhysicalMemory = data.TotalPhysicalMemory; this.Address = data.Address; this.CpuPerformance = data.CpuPerformance; this.AvailablePhysicalMemory = data.AvailablePhysicalMemory; this.Cpu = data.Cpu; this.WsServerNodes = data.WsServerNodes; }
public WebApiServerStateViewModel(IWebApiServerState data) { _description = data.Description; _oSInfo = data.OSInfo; _totalPhysicalMemory = data.TotalPhysicalMemory; _address = data.Address; _cpuPerformance = data.CpuPerformance; _availablePhysicalMemory = data.AvailablePhysicalMemory; _cpu = data.Cpu; _cpuVm = new CpuDataViewModel(data.Cpu); _wsServerNodes = data.WsServerNodes; _wsServerNodeVms = new ObservableCollection <WsServerNodeStateViewModel>(data.WsServerNodes.Select(a => new WsServerNodeStateViewModel(a))); }
public void Update(IWebApiServerState data) { this.Description = data.Description; this.OSInfo = data.OSInfo; this.TotalPhysicalMemory = data.TotalPhysicalMemory; this.Address = data.Address; this.CpuPerformance = data.CpuPerformance; this.AvailablePhysicalMemory = data.AvailablePhysicalMemory; this.ProcessMemoryMb = data.ProcessMemoryMb; this.ThreadCount = data.ThreadCount; this.HandleCount = data.HandleCount; this.AvailableFreeSpaceInfo = data.AvailableFreeSpaceInfo; this.CaptchaCount = data.CaptchaCount; this.Cpu = data.Cpu; this.WsServerNodes = data.WsServerNodes; }
public WebApiServerStateViewModel(IWebApiServerState data) { _description = data.Description; _oSInfo = data.OSInfo; _totalPhysicalMemory = data.TotalPhysicalMemory; _address = data.Address; _cpuPerformance = data.CpuPerformance; _availablePhysicalMemory = data.AvailablePhysicalMemory; _processMemoryMb = data.ProcessMemoryMb; _threadCount = data.ThreadCount; _handleCount = data.HandleCount; _availableFreeSpaceInfo = data.AvailableFreeSpaceInfo; _captchaCount = data.CaptchaCount; _cpu = data.Cpu; _cpuVm = new CpuDataViewModel(data.Cpu); _wsServerNodes = data.WsServerNodes; _wsServerNodeVms = new ObservableCollection <WsServerNodeStateViewModel>(data.WsServerNodes.Select(a => new WsServerNodeStateViewModel(a))); }