Exemple #1
0
        public NDelayFunctionTask(FunctionWithParam function, object param, int delay)
        {
            if (function == null)
            {
                throw new ArgumentNullException("function");
            }

            mFunction = function;
            mParam    = param;
            mDelay    = delay;
        }
Exemple #2
0
        public NRepeatingFunctionTask(FunctionWithParam function, object param)
        {
            if (function == null)
            {
                throw new ArgumentNullException("function");
            }

            mFunction = function;
            mParam    = param;
            mDelay    = 500;
        }
Exemple #3
0
        public static ObjectGuid CreateAndAddToSimulator(ScriptExecuteType executeType, FunctionWithParam func, object paramobj, int delay)
        {
            var p = new NRepeatingFunctionTask(func, paramobj, delay);

            p.SetExecuteType(executeType);
            return(p.AddToSimulator());
        }