Table of Contents

Method OnFailure

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

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

action Action<Result<T>>

Function to execute.

Returns

Result<T>

Current result.