public static int[] GetProcessIds(this IProcessManager processManager)
 {
     return(processManager.EnumerateProcessIds().ToArray());
 }
 public static ProcessInfo[] GetProcessInfos(this IProcessManager processManager,
                                             Func <ProcessInfo, bool> predicate)
 {
     return(processManager.GetProcessInfos(processManager.EnumerateProcessIds(), predicate));
 }