Ejemplo n.º 1
0
 internal static Task <Task> ThenWithArgs(Task task, Func <T1, T2, Task> successor, T1 arg1, T2 arg2)
 {
     return(TaskRunners <object, Task> .RunTask(task, () => successor(arg1, arg2)));
 }
Ejemplo n.º 2
0
 internal static Task <TResult> ThenWithArgs(Task <T> task, Func <T, T1, TResult> successor, T1 arg1)
 {
     return(TaskRunners <T, TResult> .RunTask(task, t => successor(t.Result, arg1)));
 }
Ejemplo n.º 3
0
 internal static Task <TResult> ThenWithArgs(Task task, Func <T1, TResult> successor, T1 arg1)
 {
     return(TaskRunners <object, TResult> .RunTask(task, () => successor(arg1)));
 }
Ejemplo n.º 4
0
 internal static Task<Task<T>> ThenWithArgs(Task<T> task, Func<Task<T>, T1, Task<T>> successor, T1 arg1)
 {
     return TaskRunners<T, Task<T>>.RunTask(task, t => successor(t, arg1));
 }
Ejemplo n.º 5
0
 public static Task <Task> ThenWithArgs(Task task, Func <T1, Task> successor, T1 arg1)
 {
     return(TaskRunners <object, Task> .RunTask(task, () => successor(arg1)));
 }
Ejemplo n.º 6
0
 public static Task <TResult> ThenWithArgs(Task task, Func <T1, T2, TResult> successor, T1 arg1, T2 arg2)
 {
     return(TaskRunners <object, TResult> .RunTask(task, () => successor(arg1, arg2)));
 }