示例#1
0
文件: Task.cs 项目: vansha/Nake
        public void Invoke(object script, TaskArgument[] arguments)
        {
            var invocation = new TaskInvocation(script, this, reflected, arguments);

            if (step)
            {
                var alreadyInvoked = !invocations.Add(invocation);
                if (alreadyInvoked)
                {
                    return;
                }
            }

            invocation.Invoke();
        }
示例#2
0
 bool Equals(TaskInvocation other)
 {
     return(!values.Where((value, index) => value != other.values[index]).Any());
 }
示例#3
0
文件: Task.cs 项目: jthelin/Nake
        public void Invoke(object script, TaskArgument[] arguments)
        {
            var invocation = new TaskInvocation(script, this, reflected, arguments);

            if (step)
            {
                var alreadyInvoked = !invocations.Add(invocation);
                if (alreadyInvoked)
                    return;
            }

            invocation.Invoke();
        }
示例#4
0
 bool Equals(TaskInvocation other)
 {
     return !values.Where((value, index) => value != other.values[index]).Any();
 }