PostSharp 6.7 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Aspects Namespace / IAsync­Method­Binding Interface / IAsync­Method­Binding Methods / IAsync­Method­Binding.​Invoke­Async Method

IAsyncMethodBinding.InvokeAsync Method

Invokes asynchronously the next node in the chain of invocation.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 6.7.12.0 (6.7.12.0)
Syntax
C#
MethodBindingInvokeAwaitable InvokeAsync(
	ref Object instance,
	Arguments arguments
)

Parameters

instance
Type: System.Object
Target instance on which the method should be invoked (null if the method is static).
arguments
Type: PostSharp.Aspects.Arguments
Method arguments.

Return Value

Type: MethodBindingInvokeAwaitable
The value that can be awaited to get the result of the underlying method's invocation.
Remarks

The instance parameter is passed by reference so that instance methods of value types ( struct in C#) are allowed to change the value of the instance.

See Also