PostSharpAPI ReferencePost­Sharp.​AspectsMethod­Interception­AspectOn­Invoke­Async
Open sandboxFocus

Method OnInvokeAsync

OnInvokeAsync(MethodInterceptionArgs)

Method invoked instead of the method to which the aspect has been applied.

Declaration
[RequiresMethodInterceptionAdviceAnalysis]
[RequiresDebuggerEnhancement]
[HasInheritedAttribute]
[MethodInterceptionAdviceOptimization]
public virtual Task OnInvokeAsync(MethodInterceptionArgs args)
Parameters
Type Name Description
MethodInterceptionArgs args

Advice arguments.

Returns
Type Description
Task
Implements
IAsyncMethodInterceptionAspect.OnInvokeAsync(MethodInterceptionArgs)