메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
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. |
리턴 | void |
public Enqueue ( WorkItem item ) : void | ||
item | WorkItem | New test work item to enqueue. |
리턴 | void |
public EnqueueQuick ( System.Action action ) : void | ||
action | System.Action | The action or method. |
리턴 | void |
public EnqueueQuick ( WorkItem item ) : void | ||
item | WorkItem | The item of work. |
리턴 | void |
protected OnComplete ( |
||
e | Empty event arguments. | |
리턴 | void |
protected OnUnhandledException ( |
||
exception | Exception object. | |
리턴 | void |