Table of Contents

Method OnFailure

Namespace
Alternet.Common
Assembly
Alternet.Common.v9.dll

OnFailure(Action)

Executes specified function if result represents unsuccessful action.

public Result OnFailure(Action action)

Parameters

action Action

Function 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

action Action<Result>

Function to execute.

Returns

Result

Updated result.