IDurableTaskManager
interface
Namespace: Orleans.Durable.Tasks
Observes and controls the durable tasks of the current durable grain activation, without a grain call.
public interface IDurableTaskManagerRemarks
Durable grains, which derive from
DurableGrain, resolve the manager from their activation services, for example through constructor injection. Each activation has its own manager, whose operations run against that activation's durable task runtime. Call it from the activation, such as from the grain's methods and durable tasks. Methods
AbortAsync(TaskId, string, CancellationToken)Administratively aborts a task of this grain: commits the task and its execution tree as failed withDurableTaskAbortedExceptionin one write, and stops their running attempts without running further task code.AbortAsync(string, string, CancellationToken)Administratively aborts the root taskrootIdof this grain and its execution tree.CancelAsync(TaskId, string?, CancellationToken)Durably requests cancellation of a task of this grain and its execution tree, carryingreason.CancelAsync(TaskId, CancellationToken)Durably requests cancellation of a task of this grain and its execution tree.CancelAsync(string, CancellationToken)Durably requests cancellation of the root taskrootIdof this grain and its execution tree.CancelAsync(string, string?, CancellationToken)Durably requests cancellation of the root taskrootIdof this grain and its execution tree, carryingreason.GetTask(TaskId)Gets a handle which observes or cancels an existing task of this grain.GetTask(TaskId)Gets a typed handle which observes or cancels an existing task of this grain.GetTask(string)Gets a handle which observes or cancels the existing root taskrootIdof this grain.GetTask(string)Gets a typed handle which observes or cancels the existing root taskrootIdof this grain.SignalAsync(TaskId, DurableSignal<T>, T, CancellationToken)Deliverssignalwithvalueto an invoked task of this grain.SignalAsync(string, DurableSignal<T>, T, CancellationToken)Deliverssignalwithvalueto the invoked root taskrootIdof this grain.TrySignalAsync(TaskId, DurableSignal<T>, T, CancellationToken)Deliverssignalwithvalueto an invoked task of this grain, and returns how the task handled it.TrySignalAsync(string, DurableSignal<T>, T, CancellationToken)Deliverssignalwithvalueto the invoked root taskrootIdof this grain, and returns how the task handled it.
