private bool RunAction(BenchTaskForAll action) { return action(this, NotificationHandler, new Cancelation()).Success; }
public Task<ActionResult> RunTaskAsync(BenchTaskForAll action, Action<TaskInfo> notify, Cancelation cancelation) { return Task.Run(() => { return action(this, CatchTaskInfos(notify), cancelation); }); }