LocationInterceptionArgs.Execute<TPayload> Method |
Namespace: PostSharp.Aspects
Assembly: PostSharp (in PostSharp.dll) Version: 2023.0.3.0 (2023.0.3.0)
public abstract void Execute<TPayload>( ILocationInterceptionArgsAction<TPayload> action, ref TPayload payload )
Parameters
- action
- Type: PostSharp.Aspects.ILocationInterceptionArgsAction<TPayload>
Class (typically a singleton) that contains the generic method Execute<TValue>(ILocationInterceptionArgs<TValue>, TPayload) that will be executed with the right method generic argument. - payload
- Type: TPayload
An argument being passed to the Execute<TValue>(ILocationInterceptionArgs<TValue>, TPayload) method of the action parameter.
Type Parameters
- TPayload
- Type of the payload.
Implements
ILocationInterceptionArgs.Execute<TPayload>(ILocationInterceptionArgsAction<TPayload>, TPayload)This method is ignored by the advice optimizer. As a result, the optimizer will not know that the action implementation uses any feature of the LocationInterceptionArgs object, and the code supporting these features won't be generated. If these features are required by action, they must be referenced inside the OnGetValue(LocationInterceptionArgs) or OnSetValue(LocationInterceptionArgs) method. |