protected override bool HandleCore(IEnumerable <IRunningProcess> processes) { var clasifier = new ProcessClasifier(); clasifier.Categorize(processes.Cast <IProcess>()); _view.DisplayRunningProcesses( clasifier.ToHookOnStart.ToArray(), clasifier.UnHooked.ToArray(), clasifier.HookedInactive.ToArray(), clasifier.HookedActive.ToArray()); return(true); }
private void DisplayRunningProcesses() { var processes = _spyManager.RunningProcesses(); processes = ProcessFilter.ForInvalidProcesses(_platformBits).Filter(processes); var clasifier = new ProcessClasifier(); clasifier.Categorize(processes.Cast <IProcess>()); _view.DisplayRunningProcesses( clasifier.ToHookOnStart.ToArray(), clasifier.UnHooked.ToArray(), clasifier.HookedInactive.ToArray(), clasifier.HookedActive.ToArray()); }