DPB1Class · 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 : IAuthored
Reference: DPB1 0.3.29.56Compare the DPB2 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Members and overloads

24 declared here

TaskDisabled

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

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

Event handler type: publicNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

TaskEnabled

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

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

Event handler type: publicNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

TaskManagerBase

MethodLink ↗
protected TaskManagerBase<T>.TaskManagerBase()

Creates a new TaskManagerBase instance.

Add

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

Calls Add on TaskManagerBase<T> with task and returns bool. Open the return contract below before using the result.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

task
Parameter type: TNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

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.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

task
Parameter type: TNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies task.

name
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

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.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

task
Parameter type: TNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

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.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

task
Parameter type: TNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies task.

name
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies name.

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

Disable

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

Calls Disable on TaskManagerBase<T> with task. This overload has no return value.

Return type: voidNo return value.

Parameters

task
Parameter type: TNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies task.

Enable

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

Calls Enable on TaskManagerBase<T> with task. This overload has no return value.

Return type: voidNo return value.

Parameters

task
Parameter type: TNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies task.

Freeze

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

Calls Freeze on TaskManagerBase<T> without arguments. This overload has no return value.

Return type: voidNo return value.

GetTaskByName

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

Calls GetTaskByName on TaskManagerBase<T> with name and returns T. Open the return contract below before using the result.

Return type: TNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

name
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies name.

Returns: The T result.

IsEnabled

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

Checks whether enabled using the supplied arguments.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

task
Parameter type: TNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

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)

Calls ProvideLogic on TaskManagerBase<T> with group, behavior, logic and returns Task<LogicResult>. Open the return contract below before using the result.

Return type: Task<LogicResult>
Explore LogicResult → members & methods

Named values for logic result. Select a value when an API accepts or returns LogicResult.

Parameters

group

Specifies group.

behavior

Specifies behavior.

logic

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)

Calls Remove on TaskManagerBase<T> with name and returns bool. Open the return contract below before using the result.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

name
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

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)

Calls Replace on TaskManagerBase<T> with name, task and returns bool. Open the return contract below before using the result.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

name
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies name.

task
Parameter type: TNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies task.

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

Reset

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

Calls Reset on TaskManagerBase<T> without arguments. This overload has no return value.

Return type: voidNo return value.

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.

Return type: Task<RunTasksResult>
Explore RunTasksResult → members & methods

Named values for run tasks result. Select a value when an API accepts or returns RunTasksResult.

Parameters

group

Specifies group.

behavior

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.

Return type: MessageResult
Explore MessageResult → members & methods

Named values for message result. Select a value when an API accepts or returns MessageResult.

Parameters

group

Specifies group.

message

Specifies message.

Returns: The MessageResult result.

Start

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

Starts this component's lifecycle.

Return type: voidNo return value.

Stop

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

Stops this component's lifecycle.

Return type: voidNo return value.

SwapTasks

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

Calls SwapTasks on TaskManagerBase<T> with name1, name2 and returns bool. Open the return contract below before using the result.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

name1
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies name1.

name2
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

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.

Return type: voidNo return value.

IsFrozen

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

Whether this task manager base is frozen.

Value type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

TaskList

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

Reads task list on TaskManagerBase<T> as ReadOnlyCollection<T>. The exact type and accessors are shown below.

Value type: ReadOnlyCollection<T>No current DPB page is linked for this built-in, external, generic or compatibility-only type.

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