PostSharp//API Reference/Post­Sharp.​Aspects/IAsync­Method­Interception­Aspect/On­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]
Task OnInvokeAsync(MethodInterceptionArgs args)
Parameters
Type Name Description
MethodInterceptionArgs args

Advice arguments.

Returns
Type Description
Task