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