DynamicallyAdvisableObject.ExecuteWithAdvices<TResult, TAction> Method |
Executes an action wrapped by all custom advices added to the current object.
Namespace: PostSharp.Patterns.Model
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 4.3.48.0 (4.3.48.0)
C#
protected TResult ExecuteWithAdvices<TResult, TAction>( ObjectAccessLevel objectAccessLevel, ref TAction action ) where TAction : struct, new(), IInvocable<TResult>
Parameters
- objectAccessLevel
- Type: PostSharp.Patterns.Model.ObjectAccessLevel
Required access level when executing action. - action
- Type: TAction
The action to be executed.
Type Parameters
- TResult
- Type of return value.
- TAction
- Action type.
Return Value
Type: TResultThe return value of action.