diff --git a/Lib.ProcessManaging/ProcessManager.cs b/Lib.ProcessManaging/ProcessManager.cs index bd306c2..750f71f 100644 --- a/Lib.ProcessManaging/ProcessManager.cs +++ b/Lib.ProcessManaging/ProcessManager.cs @@ -42,6 +42,7 @@ namespace Lib.ProcessManaging monitorReadyEvent.WaitOne(); } + public IObservedProcess? GetProcessById(int id) => Processes.FirstOrDefault(p => p.Id == id); private void Monitor(object? state) { if (state is not ManualResetEvent monitorReadyEvent)