private TaskExecutionResult Execute(IExecutableTask executableTask)
 {
     try
     {
         return(executableTask.Execute());
     }
     catch (Exception exception)
     {
         CurrentRequestData.ErrorSignal.Raise(exception);
         return(TaskExecutionResult.Failure(executableTask, exception));
     }
 }
Exemplo n.º 2
0
 public TaskExecutionResult Execute()
 {
     try
     {
         OnExecute();
         return(TaskExecutionResult.Successful(this));
     }
     catch (Exception ex)
     {
         CurrentRequestData.ErrorSignal.Raise(ex);
         return(TaskExecutionResult.Failure(this, ex));
     }
 }