コード例 #1
0
 private void ProcessController_ExitProessEvent(ProcessController controller)
 {
     if (ExitProessEvent != null)
     {
         processExitQueue.Enqueue(controller);
     }
     if (AsyncExitProessEvent != null)
     {
         AsyncExitProessEvent(controller);
     }
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 public ProcessMessage(ProcessController controller, string arguments)
 {
     this.Controller = controller;
     this.Arguments  = arguments;
 }