TaskService.StartNew method
Start a new task to run.
public string StartNew(Action action, TaskRunTypeEnum tasktype, string taskname = "",
bool autoDeleteWhenDone = true)
parameter | description |
---|---|
action | What shod be running?. |
tasktype | Type of task this is. |
taskname | Task name. |
autoDeleteWhenDone | Delete task when it is done. |
Return Value
Name of the work. if null. error starting background work.
Exceptions
exception | condition |
---|---|
ArgumentNullException | error. |
See Also
- enum TaskRunTypeEnum
- class TaskService
- namespace LiTools.Helpers.Organize