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

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

            mFunction = function;
            mParam    = param;
            mDelay    = 500;
        }
コード例 #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());
        }