Skip to content

ISchedulableTask Methods

Defines a durable task which a host can start as a root task, outside a durable execution.

GetHandle(TaskId)

abstract
public abstract IScheduledTaskHandle GetHandle(TaskId taskId)
Gets a handle for a scheduled identifier.

Parameters

taskIdTaskId

Post(TaskId)

virtual
View source
public virtual IScheduledTaskHandle Post(TaskId taskId)
Stages the start of this definition under taskId in the calling code's durable outbox, and returns a handle for the task.

Parameters

taskIdTaskId

ScheduleAsync(TaskId, CancellationToken)

abstract
public abstract ValueTask<DurableTaskResponse> ScheduleAsync(TaskId taskId, CancellationToken cancellationToken)
Schedules or reattaches to this definition under taskId, and completes once the task's host has accepted and durably stored the task.

Parameters

taskIdTaskId
cancellationTokenCancellationToken