// 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())); }
// 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())); }