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