Example #1
0
 /// <summary>
 /// Continues the with.
 /// </summary>
 /// <param name="waitTask">The wait task.</param>
 /// <param name="resultTask">The result task.</param>
 /// <param name="resultType">Type of the result.</param>
 /// <returns></returns>
 public static Task ContinueWith(this Task waitTask, Task resultTask, Type resultType) => TaskContinuer.ContinueWith(waitTask, resultTask, resultType);
Example #2
0
 /// <summary>
 /// Continues the task, in a reflection way (opposed to generic way).
 /// </summary>
 /// <typeparam name="TTask">The type of the task.</typeparam>
 /// <param name="task">The task.</param>
 /// <param name="func">The function.</param>
 /// <param name="resultType">Type of the result.</param>
 /// <returns></returns>
 public static Task ContinueWith <TTask>(this TTask task, Func <TTask, object> func, Type resultType)
     where TTask : Task => TaskContinuer.ContinueWith(task, func, resultType);