Class TaskManager
- Namespace
- Dynamicweb.Diagnostics.Tasks
- Assembly
- Dynamicweb.Core.dll
The Class TaskManager provides common operations on the Task objects
- Inheritance
-
Task
Manager
- Inherited Members
Properties
BaseFolder
Gets or sets the base folder in which diagnostics are stored.
Property Value
- string
The base folder.
Context
Gets or sets the context that provides an independant set of parameters for tasks.
Property Value
- Context
The context.
Methods
GetActiveTaskNames()
Gets a list of names of active tasks.
Returns
GetTaskInfo(string)
Gets the task information for a task with the given name. If a task with the given name does not exist, null
is returned.
Parameters
name
stringThe name.
Returns
IsTaskActive(string)
Determines whether a task with the given name exists and is running.
Parameters
name
stringThe name.
Returns
StartTask(string, Action)
Starts the given task and register the task with the given name.
Parameters
Returns
StartTask(string, Action<Tracker>)
Starts the given task and register the task with the given name. A Tracker is created and passed through. The task can use the provided Tracker internally.
Parameters
Returns
StartTask(string, Action<Tracker>, Tracker)
Starts the given task and register the task with the given name using the provided Tracker.
The task can use the provided Tracker internally.
If the given Tracker is null
, a Tracker is created automatically.
Parameters
Returns
StartTask<T>(string, Action<Tracker, T>, Tracker, T)
Starts the given task and register the task with the given name.
The task can use the provided Tracker internally.
If the given Tracker is null
, a Tracker is created automatically.
An provided object of type T
is passed to the task.
Parameters
name
stringThe name.
task
Action<Tracker, T>The task.
tracker
TrackerThe tracker.
obj
TThe object.
Returns
Type Parameters
T
The type of the object to pass to the task.
StartTask<T>(string, Action<Tracker, T>, T)
Starts the given task and register the task with the given name.
A Tracker is created and passed through.
The task can use the provided Tracker internally.
An provided object of type T
is passed to the task.
Parameters
Returns
Type Parameters
T
The type of the object to pass to the task.