C# 클래스 Microsoft.Silverlight.Testing.Harness.CompositeWorkItem

TestWorkItem which can contain sub-tasks; the underlying work item is not marked complete until the Children have completed or an Exception is thrown.
상속: WorkItem
파일 보기 프로젝트 열기: garyjohnson/wpnest 1 사용 예제들

공개 메소드들

메소드 설명
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 ( EventArgs e ) : void

Fire the Complete event.

OnUnhandledException ( Exception exception ) : void

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 ( Exception e ) : void

Call when an exception occurs inside a work item.

메소드 상세

ClearChildren() 보호된 메소드

Clear the children.
protected ClearChildren ( ) : void
리턴 void

CompositeWorkItem() 공개 메소드

Constructor for the TestTaskContainer type.
public CompositeWorkItem ( ) : System
리턴 System

Dequeue() 공개 메소드

Dequeue a work item.
public Dequeue ( ) : WorkItem
리턴 WorkItem

Enqueue() 공개 메소드

Add a new callback action and schedule it for invocation.
public Enqueue ( System.Action action ) : void
action System.Action The action.
리턴 void

Enqueue() 공개 메소드

Add a new work item to the container to schedule it for invocation.
public Enqueue ( WorkItem item ) : void
item WorkItem New test work item to enqueue.
리턴 void

EnqueueQuick() 공개 메소드

Enqueues a callback or action that will quickly execute.
public EnqueueQuick ( System.Action action ) : void
action System.Action The action or method.
리턴 void

EnqueueQuick() 공개 메소드

Adds a new work item that will execute more quickly.
public EnqueueQuick ( WorkItem item ) : void
item WorkItem The item of work.
리턴 void

FirstInvoke() 보호된 메소드

Optional method to call on the first invoke.
protected FirstInvoke ( ) : void
리턴 void

Invoke() 공개 메소드

Invoke the test container; in turn will execute child work items as needed. Supports executing multiple items immediately for performance reasons.
public Invoke ( ) : bool
리턴 bool

OnComplete() 보호된 메소드

Fire the Complete event.
protected OnComplete ( EventArgs e ) : void
e System.EventArgs Empty event arguments.
리턴 void

OnUnhandledException() 보호된 메소드

Fire the unhandled exception event.
protected OnUnhandledException ( Exception exception ) : void
exception System.Exception Exception object.
리턴 void

Peek() 공개 메소드

Return the top work item, if any, from this container.
public Peek ( ) : WorkItem
리턴 WorkItem

WorkItemComplete() 보호된 메소드

Work items must call this method to indicate completion of the work item; in turn fires the Complete event delegates.
protected WorkItemComplete ( ) : void
리턴 void