예제 #1
0
 public AsyncFunc(Func <T1, T2, T3, T4, TResult> func)
 {
     _func = new AsyncFunc <Tuple <T1, T2, T3, T4>, TResult>(
         (tuple) => func(tuple.Item1, tuple.Item2, tuple.Item3, tuple.Item4));
 }
예제 #2
0
 public AsyncFunc(Func <T1, T2, T3, T4, Func <bool>, Action <int>, TResult> func)
 {
     _func = new AsyncFunc <Tuple <T1, T2, T3, T4>, TResult>(
         (tuple, isCancelled, reportProgress) => func(tuple.Item1, tuple.Item2, tuple.Item3, tuple.Item4, isCancelled, reportProgress));
 }
예제 #3
0
 public AsyncFunc(Func <T1, T2, TResult> func)
 {
     _func = new AsyncFunc <Tuple <T1, T2>, TResult>(
         (tuple) => func(tuple.Item1, tuple.Item2));
 }
예제 #4
0
 public AsyncFunc(Func <T1, T2, T3, T4, Func <bool>, TResult> func)
 {
     _func = new AsyncFunc <Tuple <T1, T2, T3, T4>, TResult>(
         (tuple, isCancelled) => func(tuple.Item1, tuple.Item2, tuple.Item3, tuple.Item4, isCancelled));
 }
예제 #5
0
 public AsyncFunc(Func <T1, T2, Action <int>, TResult> func)
 {
     _func = new AsyncFunc <Tuple <T1, T2>, TResult>(
         (tuple, reportProgress) => func(tuple.Item1, tuple.Item2, reportProgress));
 }