Table of Contents

Method OnSuccess

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

OnSuccess(Func<Result>)

Executes specified function if result represents successful action.

public Result OnSuccess(Func<Result> func)

Parameters

func Func<Result>

Function to execute.

Returns

Result

Current result if action was not succeed; otherwise result of executing specified function.

OnSuccess(Action)

Executes specified function if result represents successful action.

public Result OnSuccess(Action action)

Parameters

action Action

Function to execute.

Returns

Result

Current result if action was not succeed; otherwise executes specified action and returns OK result.