Exemple #1
0
 // Run the task and record its outcome plus duration.
 // See ActionRecorder.RecordCancelable for details.
 public static bool RunAndRecord(this ICancelableTask task, IAction action)
 {
     return(action.Record(() => task.Run()));
 }
Exemple #2
0
 // Run the task and record its outcome plus duration.
 // See ActionRecorder.RecordCancelable for details.
 public static bool RunAndRecord(this ICancelableTask task,
                                 ActionRecorder recorder, ActionType type)
 {
     return(recorder.CreateToolAction(type).Record(() => task.Run()));
 }