C# 클래스 NUnit.Framework.Internal.Execution.SimpleWorkItemDispatcher

SimpleWorkItemDispatcher handles execution of WorkItems by directly executing them. It is provided so that a dispatcher is always available in the context, thereby simplifying the code needed to run child tests.
상속: IWorkItemDispatcher
파일 보기 프로젝트 열기: nunit/nunit

공개 메소드들

메소드 설명
CancelRun ( bool force ) : void

Cancel (abort or stop) the ongoing run. If no run is in process, the call has no effect.

Dispatch ( WorkItem work ) : void

Dispatch a single work item for execution. The first work item dispatched is saved as the top-level work item and a thread is created on which to run it. Subsequent calls come from the top level item or its descendants on the proper thread.

비공개 메소드들

메소드 설명
RunnerThreadProc ( ) : void

메소드 상세

CancelRun() 공개 메소드

Cancel (abort or stop) the ongoing run. If no run is in process, the call has no effect.
public CancelRun ( bool force ) : void
force bool true if the run should be aborted, false if it should allow its currently running test to complete
리턴 void

Dispatch() 공개 메소드

Dispatch a single work item for execution. The first work item dispatched is saved as the top-level work item and a thread is created on which to run it. Subsequent calls come from the top level item or its descendants on the proper thread.
public Dispatch ( WorkItem work ) : void
work WorkItem The item to dispatch
리턴 void