Header menu logo Nao

ISessionTaskGrain Type

Grain that owns and runs a single async task. Key = "userId/sessionId/taskId" — the same string key as the sub-session `SessionGrain` it may drive (a different grain type).

Instance members

Instance member Description

this.CancelAsync

Full Usage: this.CancelAsync

Returns: Task
Modifiers: abstract

Request best-effort cancellation. Reentrant so it can interrupt a running task.

Returns: Task

this.GetStatusAsync

Full Usage: this.GetStatusAsync

Returns: Task<TaskRef>
Modifiers: abstract

Current task snapshot. Reentrant so it can be polled while the task runs.

Returns: Task<TaskRef>

this.RunAsync

Full Usage: this.RunAsync

Returns: Task
Modifiers: abstract

Execute the task body. Dispatched as a fire-and-forget self-call by `StartAsync` (and re-dispatched on activation to resume an interrupted task).

Returns: Task

this.StartAsync

Full Usage: this.StartAsync

Parameters:
Returns: Task<TaskRef>
Modifiers: abstract

Persist the task spec, mark it running, and dispatch the work in the background.

spec : TaskStartSpec
Returns: Task<TaskRef>

Type something to start searching.