Exemple #1
0
        public ExecutionEnvironment StartCall(ExecutionEnvironment e)
        {
            ExecutionEnvironment ex = new ExecutionEnvironment(e);

            ex.SetState("current", 0);
            ex.SetState("retVal", null);
            return(ex);
        }
        public ExecutionEnvironment StartCall(ExecutionEnvironment e)
        {
            ExecutionEnvironment ex = new ExecutionEnvironment(e);

            ex.SetState("minimum", 0);
            ex.SetState("maximum", 0);
            ex.SetState("current", 0);
            return(ex);
        }
Exemple #3
0
        //execution
        public ExecutionEnvironment StartCall(ExecutionEnvironment e)
        {
            ExecutionEnvironment ex = new ExecutionEnvironment(e);

            ex.SetState("canContinue", false);
            ex.SetState("current", 0);
            ex.SetState("result", null);
            return(ex);
        }
Exemple #4
0
        //execution

        public ExecutionEnvironment StartCall(ExecutionEnvironment e)
        {
            ExecutionEnvironment ex = new ExecutionEnvironment(e);

            ex.SetState("loopNumber", 0);
            ex.SetState("currentNumber", 0);
            ex.SetState("current", 0);
            ex.SetState("result", null);
            return(ex);
        }
Exemple #5
0
        Nullable <DateTime> Callback(object value, object exception, ExecutionEnvironment e)
        {
            int current = (int)e.GetState("current");

            current++;
            if (current == Body.Count)
            {
                e.SetState("retVal", value);
            }
            e.SetState("current", current);
            return(null);
        }
        Nullable <DateTime> Callback(object value, object exception, ExecutionEnvironment e)
        {
            int current = (int)e.GetState("current");

            if (current == 0)
            {
                e.SetState("minimum", (int)Math.Ceiling((double)value));
            }
            else
            {
                e.SetState("maximum", (int)Math.Floor((double)value));
            }
            e.SetState("current", current + 1);
            return(null);
        }
Exemple #7
0
        Nullable <DateTime> Callback(object value, object exception, ExecutionEnvironment e)
        {
            int current = (int)e.GetState("current");

            if (current == 0)
            {
                e.SetState("testResult", value);
            }
            else
            {
            }
            current++;
            e.SetState("current", current);
            e.SetState("result", value);
            return(null);
        }
Exemple #8
0
        Nullable <DateTime> Callback(object value, object exception, ExecutionEnvironment e)
        {
            int current       = (int)e.GetState("current");
            int currentNumber = (int)e.GetState("currentNumber");

            if (current == 0)
            {
                e.SetState("loopNumber", int.Parse(value + ""));
            }
            else
            {
                e.SetState("currentNumber", currentNumber + 1);
            }
            e.SetState("current", current + 1);
            current = (int)e.GetState("current");
            e.SetState("result", value);
            return(null);
        }