Beispiel #1
0
        public List <ProcessInfoModel> GetProcessInfos()
        {
            var processList = ResourceManager.GetResources(nameof(Process)).Select(a => (Process)a);

            return(processList.Select(resource => new ProcessInfoModel
            {
                ProcessName = resource.ResourceName,
                ContainerNames = resource.GetContainerNames(),
                TotalRunningTimes = resource.RunCounts,
                BreakCounts = resource.BreakCounts,
                RunningInstanceNumber = ProcessManagement.GetProcessInstancesNumber(resource.ProcessName),
            }).ToList());
        }