public virtual void OnFailure(IExecutableTask executableTask, Exception exception) { executableTask.OnFailure(exception); if (Tries < 5) Status = TaskExecutionStatus.Pending; else { Status = TaskExecutionStatus.Failed; FailedAt = CurrentRequestData.Now; executableTask.OnFinalFailure(exception); } Tries++; }
public virtual void OnFailure(IExecutableTask executableTask, Exception exception) { executableTask.OnFailure(exception); if (Tries < 5) { Status = TaskExecutionStatus.Pending; } else { Status = TaskExecutionStatus.Failed; FailedAt = CurrentRequestData.Now; executableTask.OnFinalFailure(exception); } Tries++; }
public virtual void OnFailure(IExecutableTask executableTask, Exception exception) { Status = TaskExecutionStatus.Pending; executableTask.OnFailure(exception); }
public virtual void OnFailure(IExecutableTask executableTask, Exception exception) { Status = TaskExecutionStatus.Pending; executableTask.OnFailure(exception); }