Example #1
0
            public override int Run(IBuildActions actions, Action <string> startCallback, Action <int, string> exitCallBack)
            {
                int ret1;

                if (s2a != null)
                {
                    ret1 = s1.Run(actions, startCallback, exitCallBack, out var stdout1);
                    return(s2a(stdout1, ret1).Run(actions, startCallback, exitCallBack));
                }

                ret1 = s1.Run(actions, startCallback, exitCallBack);
                return(s2b(ret1).Run(actions, startCallback, exitCallBack));
            }
Example #2
0
            public override int Run(IBuildActions actions, Action <string, bool> startCallback, Action <int, string, bool> exitCallBack)
            {
                int ret1;

                if (s2a != null)
                {
                    ret1 = s1.Run(actions, startCallback, exitCallBack, out var stdout1);
                    return(s2a(stdout1, ret1).Run(actions, startCallback, exitCallBack));
                }

                if (s2b != null)
                {
                    ret1 = s1.Run(actions, startCallback, exitCallBack);
                    return(s2b(ret1).Run(actions, startCallback, exitCallBack));
                }

                throw new InvalidOperationException("Unexpected error");
            }