Method OnFailure
OnFailure(Action<Result<T>>)
Executes specified function to update result of the executed action if result represents unsuccessful action.
public Result<T> OnFailure(Action<Result<T>> action)
Parameters
Returns
- Result<T>
Current result.