DPB2Class · Bots, plugins and tasks

TaskManager

Coordinates task. Use its members to discover the current selection and supported operations.

Namespace: DreamPoeBot.Loki.Bot

public class TaskManager
Reference: DPB2 0.4.5.103Compare the DPB1 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Members and overloads

1 declared here

Search includes inherited members below. 17 matching inherited members →

Show all members

Run

MethodLink ↗
public override Task<RunTasksResult> TaskManager.Run(TaskGroup group, RunBehavior behavior)

Awaits tasks in list order, filtered by TaskGroup. UntilHandled ends this pass at the first task returning true; All continues through the selected tasks. The next call starts from the beginning. This is sequential cooperation, not parallel execution or preemption.

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: After awaiting: TasksRan if at least one selected task returned true; NoTasksRan otherwise. NoTasksRan can also mean tasks were called but all returned false.

Inherited members and contracts

17 public members from documented base types and interfaces. Links open the original declaration; overrides are shown only once. Search using the member field above.

public bool TaskManagerBase<T>.Add(T task) Declared by TaskManagerBase<T>

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

public bool TaskManagerBase<T>.AddAfter(T task, string name) Declared by TaskManagerBase<T>

Adds after using the supplied arguments.

public bool TaskManagerBase<T>.AddAtFront(T task) Declared by TaskManagerBase<T>

Adds at front using the supplied arguments.

public bool TaskManagerBase<T>.AddBefore(T task, string name) Declared by TaskManagerBase<T>

Adds before using the supplied arguments.

public void TaskManagerBase<T>.Disable(T task) Declared by TaskManagerBase<T>

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

public void TaskManagerBase<T>.Enable(T task) Declared by TaskManagerBase<T>

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

public void TaskManagerBase<T>.Freeze() Declared by TaskManagerBase<T>

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

public T TaskManagerBase<T>.GetTaskByName(string name) Declared by TaskManagerBase<T>

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

public bool TaskManagerBase<T>.IsEnabled(T task) Declared by TaskManagerBase<T>

Checks whether enabled using the supplied arguments.

public bool TaskManagerBase<T>.IsFrozen { get; private set; } Declared by TaskManagerBase<T>

Whether this task manager base is frozen.

public bool TaskManagerBase<T>.Remove(string name) Declared by TaskManagerBase<T>

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

public bool TaskManagerBase<T>.Replace(string name, T task) Declared by TaskManagerBase<T>

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

public void TaskManagerBase<T>.Reset() Declared by TaskManagerBase<T>

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

public bool TaskManagerBase<T>.SwapTasks(string name1, string name2) Declared by TaskManagerBase<T>

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

public TaskManagerBase<T>.TaskEvent TaskManagerBase<T>.TaskDisabled Declared by TaskManagerBase<T>

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

public TaskManagerBase<T>.TaskEvent TaskManagerBase<T>.TaskEnabled Declared by TaskManagerBase<T>

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

public ReadOnlyCollection<T> TaskManagerBase<T>.TaskList { get; } Declared by TaskManagerBase<T>

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

No dedicated example has been reviewed for this member. Browse the class reference; its examples may demonstrate other operations.

Guides using this class

These guides refer to TaskManager as a whole and may use other members. They are not dedicated examples of the selected member.

See how these APIs fit together. Labs include complete source; the FollowBot walkthrough teaches you to build your own bot from selected fragments and checkpoints.

DPB2 0.4.5.103 · 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.