private void ProcessController_ExitProessEvent(ProcessController controller) { if (ExitProessEvent != null) { processExitQueue.Enqueue(controller); } if (AsyncExitProessEvent != null) { AsyncExitProessEvent(controller); } }
public bool Execute(ProcessSettings settings) { Dispose(); ProcessController = new ProcessController(); if (settings.IsEnableRaisingEvents) { ProcessController.ExitProessEvent += ProcessController_ExitProessEvent; } if (settings.IsRedirectStandardOutput) { ProcessController.RedirectOutputEvent += ProcessController_RedirectOutputEvent; } if (settings.IsRedirectStandardError) { ProcessController.RedirectErrorEvent += ProcessController_RedirectErrorEvent;; } var result = ProcessController.Execute(settings); return(result); }
public ProcessMessage(ProcessController controller, string arguments) { this.Controller = controller; this.Arguments = arguments; }