Method | Description | |
---|---|---|
CompositeWorkItem ( ) : System |
Constructor for the TestTaskContainer type.
|
|
Dequeue ( ) : WorkItem |
Dequeue a work item.
|
|
Enqueue ( System.Action action ) : void |
Add a new callback action and schedule it for invocation.
|
|
Enqueue ( WorkItem item ) : void |
Add a new work item to the container to schedule it for invocation.
|
|
EnqueueQuick ( System.Action action ) : void |
Enqueues a callback or action that will quickly execute.
|
|
EnqueueQuick ( WorkItem item ) : void |
Adds a new work item that will execute more quickly.
|
|
Invoke ( ) : bool |
Invoke the test container; in turn will execute child work items as needed. Supports executing multiple items immediately for performance reasons.
|
|
Peek ( ) : WorkItem |
Return the top work item, if any, from this container.
|
Method | Description | |
---|---|---|
ClearChildren ( ) : void |
Clear the children.
|
|
FirstInvoke ( ) : void |
Optional method to call on the first invoke.
|
|
OnComplete ( |
Fire the Complete event.
|
|
OnUnhandledException ( |
Fire the unhandled exception event.
|
|
WorkItemComplete ( ) : void |
Work items must call this method to indicate completion of the work item; in turn fires the Complete event delegates.
|
Method | Description | |
---|---|---|
Invoke ( WorkItem &usedWorkItem ) : bool | ||
WorkItemCompleteInternal ( ) : void |
Internal-only version which can be called during a test completion through the relation - not necessarily the best design; events may make more sense long-term.
|
|
WorkItemException ( |
Call when an exception occurs inside a work item.
|
public Enqueue ( System.Action action ) : void | ||
action | System.Action | The action. |
return | void |
public Enqueue ( WorkItem item ) : void | ||
item | WorkItem | New test work item to enqueue. |
return | void |
public EnqueueQuick ( System.Action action ) : void | ||
action | System.Action | The action or method. |
return | void |
public EnqueueQuick ( WorkItem item ) : void | ||
item | WorkItem | The item of work. |
return | void |
protected OnComplete ( |
||
e | Empty event arguments. | |
return | void |
protected OnUnhandledException ( |
||
exception | Exception object. | |
return | void |