ConfiguredDurableTask
struct
Namespace: Orleans.Durable.Tasks
Configures and starts a durable task.
public readonly struct ConfiguredDurableTaskRemarks
Each configuration method returns a new configuration and leaves this one unchanged. ConfiguredDurableTask names the task, ConfiguredDurableTask and ConfiguredDurableTask make it an independent root task, and ConfiguredDurableTask keeps the starting execution's durable cancellation from reaching it.
Awaiting the configuration runs the task and returns once its result is durable. ConfiguredDurableTask returns a handle once the task's host has accepted and durably stored the task, and ConfiguredDurableTask stages the start with the caller's next durable write and returns its handle at once.
Methods
DetachedReturns a configuration which starts the task as an independent root task.Detached(string)Returns a configuration which starts the task as the independent root taskrootId.GetAwaiterGets an awaiter which runs or attaches to the task and returns once its result is durable.PostStages the start of the task in the caller's durable outbox, and returns its handle without waiting.ScheduleAsync(CancellationToken)Starts the task and returns its handle once the task's host has accepted and durably stored the task.ShieldedReturns a configuration which starts the task as an attached child, or runs it as part of the execution, out of reach of the starting execution's durable cancellation.WithId(string)Returns a configuration which names the task.
