Ejemplo n.º 1
0
 private void InvokeAndLog(IObsoleteTask task, IBounceCommand command)
 {
     using (var taskScope = Bounce.TaskScope(task, command, null)) {
         try {
             task.Describe(Bounce.DescriptionOutput);
             task.Invoke(command, Bounce);
             taskScope.TaskSucceeded();
         } catch (BounceException) {
             throw;
         } catch (Exception e) {
             throw new TaskException(task, e);
         }
     }
 }
Ejemplo n.º 2
0
 public virtual void Invoke(IBounceCommand command, IObsoleteTask task)
 {
     task.Invoke(command, this);
 }
Ejemplo n.º 3
0
 private void InvokeAndLog(IObsoleteTask task, IBounceCommand command)
 {
     using (var taskScope = Bounce.TaskScope(task, command, null)) {
         try {
             task.Describe(Bounce.DescriptionOutput);
             task.Invoke(command, Bounce);
             taskScope.TaskSucceeded();
         } catch (BounceException) {
             throw;
         } catch (Exception e) {
             throw new TaskException(task, e);
         }
     }
 }
Ejemplo n.º 4
0
 public virtual void Invoke(IBounceCommand command, IObsoleteTask task)
 {
     task.Invoke(command, this);
 }