Header menu logo Nao

ITaskStore Type

Pluggable store for externalized task state, grouped by parent session key.

Instance members

Instance member Description

this.GetAsync

Full Usage: this.GetAsync

Parameters:
    sessionKey : string
    taskId : string

Returns: Task<TaskRecord option>
Modifiers: abstract

Load a single task record by id.

sessionKey : string
taskId : string
Returns: Task<TaskRecord option>

this.ListAsync

Full Usage: this.ListAsync

Parameters:
    sessionKey : string

Returns: Task<TaskRecord array>
Modifiers: abstract

List all task records for a session, ordered by Sequence ascending.

sessionKey : string
Returns: Task<TaskRecord array>

this.SaveAsync

Full Usage: this.SaveAsync

Parameters:
Returns: Task
Modifiers: abstract

Insert or replace a task record (rewrites its per-task file and the session index). The record's `Sequence` is assigned/preserved by the store.

sessionKey : string
record : TaskRecord
Returns: Task

Type something to start searching.