DPB2Class · Bots, plugins and tasks

TaskManagerBase<T>

Arrange tasks into a workflow and run them using the selected group and run behavior. Task order affects which work runs first.

Namespace: DreamPoeBot.Loki.Bot

public class TaskManagerBase<T> where T : IAuthoredView DPB1 version →

Members and overloads

24 results

TaskDisabled

EventLink ↗
public TaskManagerBase<T>.TaskEvent TaskManagerBase<T>.TaskDisabled

Raised for task disabled. Subscribe with the callback type shown in the signature.

TaskEnabled

EventLink ↗
public TaskManagerBase<T>.TaskEvent TaskManagerBase<T>.TaskEnabled

Raised for task enabled. Subscribe with the callback type shown in the signature.

TaskManagerBase

MethodLink ↗
protected TaskManagerBase<T>.TaskManagerBase()

Creates a new TaskManagerBase instance.

Add

MethodLink ↗
public bool TaskManagerBase<T>.Add(T task)

Executes the add operation with the supplied arguments.

taskT
Specifies task.

Returns: A Boolean result. The member description explains the condition being checked.

AddAfter

MethodLink ↗
public bool TaskManagerBase<T>.AddAfter(T task, string name)

Adds after using the supplied arguments.

taskT
Specifies task.
namestring
Specifies name.

Returns: A Boolean result. The member description explains the condition being checked.

AddAtFront

MethodLink ↗
public bool TaskManagerBase<T>.AddAtFront(T task)

Adds at front using the supplied arguments.

taskT
Specifies task.

Returns: A Boolean result. The member description explains the condition being checked.

AddBefore

MethodLink ↗
public bool TaskManagerBase<T>.AddBefore(T task, string name)

Adds before using the supplied arguments.

taskT
Specifies task.
namestring
Specifies name.

Returns: A Boolean result. The member description explains the condition being checked.

Disable

MethodLink ↗
public void TaskManagerBase<T>.Disable(T task)

Executes the disable operation with the supplied arguments.

taskT
Specifies task.

Enable

MethodLink ↗
public void TaskManagerBase<T>.Enable(T task)

Executes the enable operation with the supplied arguments.

taskT
Specifies task.

Freeze

MethodLink ↗
public void TaskManagerBase<T>.Freeze()

Executes the freeze operation.

GetTaskByName

MethodLink ↗
public T TaskManagerBase<T>.GetTaskByName(string name)

Returns task by name using the supplied arguments.

namestring
Specifies name.

Returns: The T result.

IsEnabled

MethodLink ↗
public bool TaskManagerBase<T>.IsEnabled(T task)

Checks whether enabled using the supplied arguments.

taskT
Specifies task.

Returns: A Boolean result. The member description explains the condition being checked.

ProvideLogic

MethodLink ↗
public abstract Task<LogicResult> TaskManagerBase<T>.ProvideLogic(TaskGroup group, RunBehavior behavior, Logic logic)

Executes the provide logic operation with the supplied arguments.

groupTaskGroup
Specifies group.
behaviorRunBehavior
Specifies behavior.
logicLogic
Specifies logic.

Returns: An asynchronous operation. Await it before reading the result or continuing the workflow.

Remove

MethodLink ↗
public bool TaskManagerBase<T>.Remove(string name)

Executes the remove operation with the supplied arguments.

namestring
Specifies name.

Returns: A Boolean result. The member description explains the condition being checked.

Replace

MethodLink ↗
public bool TaskManagerBase<T>.Replace(string name, T task)

Executes the replace operation with the supplied arguments.

namestring
Specifies name.
taskT
Specifies task.

Returns: A Boolean result. The member description explains the condition being checked.

Reset

MethodLink ↗
public void TaskManagerBase<T>.Reset()

Executes the reset operation.

Run

MethodLink ↗
public abstract Task<RunTasksResult> TaskManagerBase<T>.Run(TaskGroup group, RunBehavior behavior)

Runs this component's work and returns the result shown in the signature.

groupTaskGroup
Specifies group.
behaviorRunBehavior
Specifies behavior.

Returns: An asynchronous operation. Await it before reading the result or continuing the workflow.

SendMessage

MethodLink ↗
public abstract MessageResult TaskManagerBase<T>.SendMessage(TaskGroup group, Message message)

Sends message using the supplied arguments.

groupTaskGroup
Specifies group.
messageMessage
Specifies message.

Returns: The MessageResult result.

Start

MethodLink ↗
public abstract void TaskManagerBase<T>.Start()

Starts this component's lifecycle.

Stop

MethodLink ↗
public abstract void TaskManagerBase<T>.Stop()

Stops this component's lifecycle.

SwapTasks

MethodLink ↗
public bool TaskManagerBase<T>.SwapTasks(string name1, string name2)

Executes the swap tasks operation with the supplied arguments.

name1string
Specifies name1.
name2string
Specifies name2.

Returns: A Boolean result. The member description explains the condition being checked.

Tick

MethodLink ↗
public abstract void TaskManagerBase<T>.Tick()

Updates this component for the current bot tick. Keep repeated work short.

IsFrozen

PropertyLink ↗
public bool TaskManagerBase<T>.IsFrozen { get; private set; }

Whether this task manager base is frozen.

TaskList

PropertyLink ↗
public ReadOnlyCollection<T> TaskManagerBase<T>.TaskList { get; }

Gets task list for TaskManagerBase.

Related types

DPB2 0.4.5.88 · Reference reviewed 2026-10-02. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.