IExecuteActionDynamicAdvice.Invoke<TResult, TAction> Method |
Invokes the advice or the underlying method.
Namespace: PostSharp.Patterns.DynamicAdvising
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
TResult Invoke<TResult, TAction>( ObjectAccessLevel objectAccessLevel, AdviceEnumerator<IExecuteActionDynamicAdvice> nextAdvice, ref TAction action ) where TAction : struct, new(), IAction<TResult>
Parameters
- objectAccessLevel
- Type: PostSharp.Patterns.Model.ObjectAccessLevel
The ObjectAccessLevel required by the action. - nextAdvice
- Type: PostSharp.Patterns.DynamicAdvising.AdviceEnumerator<IExecuteActionDynamicAdvice>
Next advice. - action
- Type: TAction
The action to be executed.
Type Parameters
- TResult
- Type of the method result.
- TAction
- Type of the action.
Return Value
Type: TResultThe result of the underlying advice.