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