Esempio n. 1
0
 public static ContinuationTask <T> Error <T>(this ContinuationTask <T> task, Action <Task <T> > action)
 {
     task.Task.ContinueWith(action, CancellationToken.None, TaskContinuationOptions.OnlyOnFaulted, task.TaskScheduler);
     return(task);
 }
Esempio n. 2
0
 public static ContinuationTask <T> Finally <T>(this ContinuationTask <T> task, Action <Task <T> > action)
 {
     task.Task.ContinueWith(action, CancellationToken.None, TaskContinuationOptions.None, task.TaskScheduler);
     return(task);
 }
Esempio n. 3
0
 public static ContinuationTask Success(this ContinuationTask task, Action <Task> action)
 {
     task.Task.ContinueWith(action, CancellationToken.None, TaskContinuationOptions.NotOnFaulted, task.TaskScheduler);
     return(task);
 }