TryGetAddress(ScheduledTask, DurableTaskAddress)
staticextension
public static bool TryGetAddress(this ScheduledTask task, out DurableTaskAddress address)Gets the address of the task which
task observes, when other parties reach it.Parameters
taskScheduledTask- The handle.
addressDurableTaskAddress- The address of the task, when this method returns
true.
Returns
true when the handle's task is one which its grain retains for other parties: a root task which a client or an ordinary grain method started, or, in a durable execution, a detached task or a task which GetDurableTask observes. An attached child, which the execution's tree owns, has no address. Exceptions
System.ArgumentNullExceptiontaskisnull.
