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)); }
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)); }
public AsyncFunc(Func <T1, T2, TResult> func) { _func = new AsyncFunc <Tuple <T1, T2>, TResult>( (tuple) => func(tuple.Item1, tuple.Item2)); }
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)); }
public AsyncFunc(Func <T1, T2, Action <int>, TResult> func) { _func = new AsyncFunc <Tuple <T1, T2>, TResult>( (tuple, reportProgress) => func(tuple.Item1, tuple.Item2, reportProgress)); }