Exemplo n.º 1
0
 /// <summary>
 /// Invokes the given action with the set result of the task when the task succeeded.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="task">The task.</param>
 /// <param name="action">The action to perform.</param>
 /// <returns>
 /// This task.
 /// </returns>
 public static CustomTask <T> OnResult <T>(this CustomTask <T> task, Action <T> action)
 {
     return(task.OnResult(action, null));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Invokes the given action with the set result of the task when the task succeeded.
 /// </summary>
 /// <param name="task">The task.</param>
 /// <param name="action">The action to perform.</param>
 /// <returns>
 /// This task.
 /// </returns>
 public static CustomTask OnResult(this CustomTask task, Action <object> action)
 {
     return(task.OnResult(action, null));
 }