Skip to content

DurableTaskGrainExtensions.GetDurableTask(IAddressable, string)

GetDurableTask(IAddressable, string)

staticextension
View source
public static DurableTaskReference<TResult> GetDurableTask<TResult>(this IAddressable target, string rootId)
Gets a reference to the existing root durable task rootId on target, without scheduling it.

Parameters

targetIAddressable
The grain which owns the durable task, which can be the calling grain.
rootIdstring
The root ID of a task which a client, a grain, or a durable execution started.

Returns

A reference which behaves as DurableTaskGrainExtensions describes.

Exceptions

System.ArgumentNullException
target is null.
System.ArgumentException
rootId is empty or whitespace.