Exemple #1
0
 public void HandleProcess(ProcessStoppedEventArgs eventArgs)
 {
     if (BoxInRepository(eventArgs))
     {
         boxRepository.Remove(eventArgs.ProcessId);
     }
 }
Exemple #2
0
 private bool BoxInRepository(ProcessStoppedEventArgs eventArgs)
 {
     return(boxRepository.GetAll().Any(box => box.ProcessId == eventArgs.ProcessId));
 }