Open sandboxFocus

Method Invoke

Invoke<TResult, TAction>(ObjectAccessLevel, AdviceEnumerator<IExecuteActionDynamicAdvice>, ref TAction)

Invokes the advice or the underlying method.

Declaration
TResult Invoke<TResult, TAction>(ObjectAccessLevel objectAccessLevel, AdviceEnumerator<IExecuteActionDynamicAdvice> nextAdvice, ref TAction action) where TAction : struct, IAction<TResult>
Parameters
Type Name Description
ObjectAccessLevel objectAccessLevel

The ObjectAccessLevel required by the action.

AdviceEnumerator<IExecuteActionDynamicAdvice> nextAdvice

Next advice.

TAction action

The action to be executed.

Returns
Type Description
TResult

The result of the underlying advice.

Type Parameters
Name Description
TResult

Type of the method result.

TAction

Type of the action.