GetDurableTask(IAddressable, TaskId)
staticextension
public static DurableTaskReference<TResult> GetDurableTask<TResult>(this IAddressable target, TaskId taskId) Gets a reference to the existing durable task
taskId on target, without scheduling it. Parameters
targetIAddressable- The grain which owns the durable task, which can be the calling grain.
taskIdTaskId- The identifier of a task which a client, a grain, or a durable execution started.
Returns
A reference which a durable execution awaits, schedules, or passes to combinators to subscribe to the task's result, and which other code awaits, polls, cancels, or aborts.
Exceptions
System.ArgumentNullExceptiontargetisnull.System.ArgumentExceptiontaskIdis empty.
