public List<SystemProcess> GetAllSystemProcess() { // ISystemProcessService systemProcessService = IoC.Resolve<ISystemProcessService>("SystemProcessService"); SystemProcessService systemProcessService = new SystemProcessService(); DataTransfer<List<DataTransfer.SystemProcess.GetOutput>> result = systemProcessService.GetAll(); List<SystemProcess> processes = new List<SystemProcess>(); if (result.IsSuccess && result.Data != null && result.Data.Count > 0) { processes.CopyFrom(result.Data); } return processes; }
public SystemProcess GetSystemProcessByName(string processName) { //ISystemProcessService systemProcessService = IoC.Resolve<ISystemProcessService>("SystemProcessService"); SystemProcessService systemProcessService = new SystemProcessService(); DataTransfer<ControlPanel.Core.DataTransfer.SystemProcess.GetOutput> dt = systemProcessService.GetSystemProcessByName(processName); if (dt != null && dt.IsSuccess) { SystemProcess process=new SystemProcess(); process.CopyFrom(dt.Data); return process; } return null; }
public List<SystemProcessThread> GetSystemProcessThreadsByProcessName(string processName) { SystemProcessService systemProcessService = new SystemProcessService(); // ISystemProcessService systemProcessService = IoC.Resolve<ISystemProcessService>("SystemProcessService"); return systemProcessService.GetSystemProcessThreadsByProcessName(processName); }