public static ProcessInfo[] GetProcessInfos(this IProcessManager processManager) { var processIds = processManager.GetProcessIds(); return(processManager.GetProcessInfos(processIds)); }