Beispiel #1
0
        public override int Execute(PlanEventArgs args)
        {
            // IMPORTANT: The following code may throw exceptions, and they MUST NOT be handled here
            //            because we want to report errors to the GUI.
            Process process = ProcessUtils.StartSubProcess(this.Command, this.Arguments, Environment.CurrentDirectory);

            process.WaitForExit();
            return(process.ExitCode);
        }
Beispiel #2
0
        public virtual bool OnAfterPlanFinishes(PlanEventArgs e)
        {
            PlanEventHandler handler = AfterPlanFinishes;

            if (handler != null)
            {
                return(handler(this, e));
            }
            return(true);
        }
Beispiel #3
0
        public virtual bool OnBeforePlanStarts(PlanEventArgs e)
        {
            PlanEventHandler handler = BeforePlanStarts;

            if (handler != null)
            {
                return(handler(this, e));
            }
            return(true);
        }
Beispiel #4
0
 public abstract int Execute(PlanEventArgs args);