PostSharp6.0/API Reference/Post­Sharp.​Aspects Namespace/Method­Binding­Invoke­Awaiter Structure/Method­Binding­Invoke­Awaiter Methods/Method­Binding­Invoke­Awaiter.​On­Completed Method

MethodBindingInvokeAwaiter.OnCompleted Method

Schedules the continuation action that's invoked when the instance completes.

Namespace:  PostSharp.Aspects
Assembly:  PostSharp (in PostSharp.dll) Version: 6.0.35.0 (6.0.35.0)
Syntax
C#
public void OnCompleted(
	Action continuation
)

Parameters

continuation
Type: System.Action
The action to invoke when the operation completes.

Implements

INotifyCompletion.OnCompleted(Action)
Exceptions
ExceptionCondition
ArgumentNullExceptionThe continuation argument is null (Nothing in Visual Basic).
See Also