Consider using the Promise infrastructure for dependable and completable/returnable values. This chaining is good when you have a non-Promise task that needs chaining
More...
Consider using the Promise infrastructure for dependable and completable/returnable values. This chaining is good when you have a non-Promise task that needs chaining
◆ Chain()
static ChainedTask pluginbase.Objects.Tasks.ChainedTask.Chain |
( |
params ITask [] |
tasks | ) |
|
|
static |
Attribute: 0
as ChainedTask;
Attribute: i
);
21 if (tasks.Length == 0)
23 throw new ArgumentException(
"Tasks");
26 ChainedTask chain = tasks[0] as ChainedTask;
27 if (chain != null && chain._finally.Count == 0)
30 for (
int i=1; i<tasks.Length; ++i)
31 chain.Then(tasks [i]);
36 chain =
new ChainedTask();
37 foreach (var task
in tasks)
◆ Create()
static ChainedTask pluginbase.Objects.Tasks.ChainedTask.Create |
( |
| ) |
|
|
static |
45 return new ChainedTask();
◆ Finally()
ChainedTask pluginbase.Objects.Tasks.ChainedTask.Finally |
( |
Action< Exception > |
action | ) |
|
Always executes the action after all actions succeed or fail
- Parameters
-
64 _finally.AddLast(action);
◆ Then()
Add a task to run after the current set of tasks
- Parameters
-
The documentation for this class was generated from the following file: