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