Class WorkActionSet
Represent a Set of Work Actions.
Implements
Inherited Members
Namespace: Evergine.Components.WorkActions
Assembly: Evergine.Components.dll
Syntax
public class WorkActionSet : IWorkActionSet
Constructors
WorkActionSet(IWorkAction, IEnumerable<IWorkAction>)
Initializes a new instance of the WorkActionSet class.
Declaration
public WorkActionSet(IWorkAction parent, IEnumerable<IWorkAction> actions)
Parameters
Type | Name | Description |
---|---|---|
IWorkAction | parent | The parent action. |
IEnumerable<IWorkAction> | actions | The action list. |
WorkActionSet(IWorkAction, IEnumerable<Func<IWorkAction>>)
Initializes a new instance of the WorkActionSet class.
Declaration
public WorkActionSet(IWorkAction parent, IEnumerable<Func<IWorkAction>> actionGenerators)
Parameters
Type | Name | Description |
---|---|---|
IWorkAction | parent | The parent action. |
IEnumerable<Func<IWorkAction>> | actionGenerators | The action list. |
WorkActionSet(IEnumerable<IWorkAction>, Scene)
Initializes a new instance of the WorkActionSet class.
Declaration
public WorkActionSet(IEnumerable<IWorkAction> actions, Scene scene = null)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<IWorkAction> | actions | The action list. |
Scene | scene | The associated scene. |
WorkActionSet(IEnumerable<Func<IWorkAction>>, Scene)
Initializes a new instance of the WorkActionSet class.
Declaration
public WorkActionSet(IEnumerable<Func<IWorkAction>> actionGenerators, Scene scene = null)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Func<IWorkAction>> | actionGenerators | The action list. |
Scene | scene | The associated scene. |
Methods
WaitAll()
Return an action that will be completed when all actions has been completed.
Declaration
public IWorkAction WaitAll()
Returns
Type | Description |
---|---|
IWorkAction | The task. |
WaitAny()
Return an action that will be completed when any actions has been completed.
Declaration
public IWorkAction WaitAny()
Returns
Type | Description |
---|---|
IWorkAction | The task. |
WaitCount(int)
Return an action that will be completed when all actions has been completed.
Declaration
public IWorkAction WaitCount(int count)
Parameters
Type | Name | Description |
---|---|---|
int | count | The count limit. |
Returns
Type | Description |
---|---|
IWorkAction | The task. |
WaitPredicate(Func<bool, IWorkAction[]>)
Waits the predicate.
Declaration
public IWorkAction WaitPredicate(Func<bool, IWorkAction[]> waitingTaskPredicate)
Parameters
Type | Name | Description |
---|---|---|
Func<bool, IWorkAction[]> | waitingTaskPredicate | The waiting task predicate. |
Returns
Type | Description |
---|---|
IWorkAction | The task. |