Exemple #1
0
 private TaskExecutionResult Execute(AdHocTask executableTask)
 {
     try
     {
         return(executableTask.Execute());
     }
     catch (Exception exception)
     {
         CurrentRequestData.ErrorSignal.Raise(exception);
         return(TaskExecutionResult.Failure(executableTask, exception));
     }
 }
Exemple #2
0
 public TaskExecutionResult Execute()
 {
     try
     {
         OnExecute();
         return(TaskExecutionResult.Successful(this));
     }
     catch (Exception ex)
     {
         CurrentRequestData.ErrorSignal.Raise(ex);
         return(TaskExecutionResult.Failure(this, ex));
     }
 }