Skip to content

DurableTaskReferenceAwaiter<TResult> Methods

Awaits a Orleans.Durable.Tasks.DurableTaskReference: as a subscribed child in a durable execution, and otherwise by waiting for the task's result.

GetResult

View source
public TResult GetResult()
Returns the task's successful result, or throws its failure or cancellation.

OnCompleted(Action)

View source
public void OnCompleted(Action continuation)
Schedules the continuation action that's invoked when the instance completes.

Parameters

continuationAction
The action to invoke when the operation completes.

Exceptions

System.ArgumentNullException
The continuation argument is null (Nothing in Visual Basic).

UnsafeOnCompleted(Action)

View source
public void UnsafeOnCompleted(Action continuation)
Schedules the continuation action that's invoked when the instance completes.

Parameters

continuationAction
The action to invoke when the operation completes.

Exceptions

System.ArgumentNullException
The continuation argument is null (Nothing in Visual Basic).