Exemple #1
0
 /// <summary>Creates and starts a task</summary>
 /// <param name="taskset">The taskset to run</param>
 /// <param name="state">The parameterized state for the action</param>
 /// <returns>The task generated and started by this method</returns>
 public static Task StartNew <T>(this TaskSet <T> taskset, T state)
 {
     return(StartNew(taskset.Task, state, taskset.ActionFail, taskset.ActionPass));
 }
Exemple #2
0
 /// <summary>Creates and starts a task</summary>
 /// <param name="taskset">The taskset to run</param>
 /// <returns>The task generated and started by this method</returns>
 public static Task StartNew(this TaskSet taskset)
 {
     return(StartNew(taskset.Task, taskset.ActionFail, taskset.ActionPass));
 }