public void RunPrimaryTastList(TaskList taskList, ProcessTaskHandler processTaskHandler) { isPrimary = true; //taskList.EndTaskWritte += processTaskHandler; foreach (ITask task in taskList.TasksList){ task.EndTaskWrite +=processTaskHandler; } taskList.ExecuteTask(); isPrimary = false; }
public void RunPrimaryTastList(TaskList taskList, ProcessTaskHandler processTaskHandler) { isPrimary = true; //taskList.EndTaskWritte += processTaskHandler; foreach (ITask task in taskList.TasksList) { task.EndTaskWrite += processTaskHandler; } taskList.ExecuteTask(); isPrimary = false; }
public void RunSecondaryTastList(TaskList taskList, ProcessTaskHandler processTaskHandler,ProcessErrorHandler errorTaskHandler) { if (isBussy || isPrimary) return; foreach (ITask task in taskList.TasksList){ //task.EndTaskWritte += processTaskHandler; task.ErrorWrite+=errorTaskHandler; task.EndTaskWrite +=processTaskHandler; } //secondTaskList = taskList; if(secondTaskList== null) secondTaskList = new TaskList(); secondTaskList.TasksList.AddRange(taskList.TasksList); }
public void RunPrimaryTastListOnlineWrite(TaskList taskList, ProcessTaskHandler processTaskHandler,ProcessErrorHandler errorTaskHandler,ProcessErrorHandler logTaskHandler) { isPrimary = true; //taskList.EndTaskWritte += processTaskHandler; //taskList.ErrorTaskWritte+=errorTaskHandler; //if (logTaskHandler != null) // taskList.LogTaskWritte+= logTaskHandler; foreach (ITask task in taskList.TasksList){ task.ErrorWrite+=errorTaskHandler; task.EndTaskWrite +=processTaskHandler; if (logTaskHandler != null) task.LogWrite+= logTaskHandler; } taskList.ExecuteTaskOnlineWrite(); isPrimary = false; }
public void RunPrimaryTastListOnlineWrite(TaskList taskList, ProcessTaskHandler processTaskHandler, ProcessErrorHandler errorTaskHandler, ProcessErrorHandler logTaskHandler) { isPrimary = true; //taskList.EndTaskWritte += processTaskHandler; //taskList.ErrorTaskWritte+=errorTaskHandler; //if (logTaskHandler != null) // taskList.LogTaskWritte+= logTaskHandler; foreach (ITask task in taskList.TasksList) { task.ErrorWrite += errorTaskHandler; task.EndTaskWrite += processTaskHandler; if (logTaskHandler != null) { task.LogWrite += logTaskHandler; } } taskList.ExecuteTaskOnlineWrite(); isPrimary = false; }
public void RunSecondaryTastList(TaskList taskList, ProcessTaskHandler processTaskHandler, ProcessErrorHandler errorTaskHandler) { if (isBussy || isPrimary) { return; } foreach (ITask task in taskList.TasksList) { //task.EndTaskWritte += processTaskHandler; task.ErrorWrite += errorTaskHandler; task.EndTaskWrite += processTaskHandler; } //secondTaskList = taskList; if (secondTaskList == null) { secondTaskList = new TaskList(); } secondTaskList.TasksList.AddRange(taskList.TasksList); }
public ProcessTask <TTask, TNextTask> Process <TNextTask>(ProcessTaskHandler <TTask, TNextTask> task) { return(new ProcessTask <TTask, TNextTask>(task, this._queue)); }
public ProcessTask <TNextTask, TPipeline> Process <TPipeline>(ProcessTaskHandler <TNextTask, TPipeline> task) { return(new ProcessTask <TNextTask, TPipeline>(task, this._queue)); }
internal ProcessTask(ProcessTaskHandler <TTask, TNextTask> task, TaskQueue <IStatement> queue) { this.Task = task; queue.Enqueue(this); this._queue = queue; }
public void RunSecondaryTaskList(TaskList tasklist, ProcessTaskHandler processTaskHandler, bool clearError) { if(clearError){ Gtk.Application.Invoke(delegate{ this.ErrorOutput.Clear(); }); } MainClass.TaskServices.RunSecondaryTastList(tasklist, processTaskHandler, ErrorTaskWritte); }