PostSharpAPI ReferencePost­Sharp.​AspectsIAsync­Method­BindingInvoke­Async
Open sandboxFocus

IAsyncMethodBinding.InvokeAsync Method

InvokeAsync(ref Object, Arguments)

Invokes asynchronously the next node in the chain of invocation.

Declaration
MethodBindingInvokeAwaitable InvokeAsync(ref object instance, Arguments arguments)
Parameters
Type Name Description
Object instance

Target instance on which the method should be invoked (null if the method is static).

Arguments arguments

Method arguments.

Returns
Type Description
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.