Пример #1
0
        public ITargetInternal Do <T1, T2, T3>(Action <ITaskContextInternal, T1, T2, T3> targetAction, T1 param, T2 param2, T3 param3, Action <DoTask4 <T1, T2, T3> > taskAction = null, TaskGroup taskGroup = null)
        {
            var task = new DoTask4 <T1, T2, T3>(targetAction, param, param2, param3);

            taskAction?.Invoke(task);
            AddTaskToTaskGroup(taskGroup, task, TaskExecutionMode.Synchronous);
            return(this);
        }
Пример #2
0
        public ITarget Do <T1, T2, T3>(Action <ITaskContextInternal, T1, T2, T3> targetAction, T1 param, T2 param2, T3 param3, Action <DoTask4 <T1, T2, T3> > taskAction = null)
        {
            var task = new DoTask4 <T1, T2, T3>(targetAction, param, param2, param3);

            taskAction?.Invoke(task);
            Tasks.Add(new Tuple <ITask, TaskExecutionMode>(task, TaskExecutionMode.Synchronous));
            return(this);
        }