C# 클래스 Testeroids.TplTestPlatformHelper.TestTaskScheduler

Provides a task scheduler that runs tasks only on the current thread, and records the order in which Tasks were queued using QueueTask.
상속: System.Threading.Tasks.TaskScheduler
파일 보기 프로젝트 열기: Testeroids/Testeroids 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
TestTaskScheduler ( bool executeTplTasks ) : System

Initializes a new instance of the TestTaskScheduler class.

보호된 메소드들

메소드 설명
GetScheduledTasks ( ) : IEnumerable

Gets the Tasks currently scheduled to this scheduler.

QueueTask ( System.Threading.Tasks.Task task ) : void

Runs the provided Task synchronously on the current thread.

TryExecuteTaskInline ( System.Threading.Tasks.Task task, bool taskWasPreviouslyQueued ) : bool

Runs the provided Task synchronously on the current thread.

메소드 상세

GetScheduledTasks() 보호된 메소드

Gets the Tasks currently scheduled to this scheduler.
protected GetScheduledTasks ( ) : IEnumerable
리턴 IEnumerable

QueueTask() 보호된 메소드

Runs the provided Task synchronously on the current thread.
protected QueueTask ( System.Threading.Tasks.Task task ) : void
task System.Threading.Tasks.Task The task to be executed.
리턴 void

TestTaskScheduler() 공개 메소드

Initializes a new instance of the TestTaskScheduler class.
public TestTaskScheduler ( bool executeTplTasks ) : System
executeTplTasks bool /// Setting this field to false will prevent any queued task from starting. ///
리턴 System

TryExecuteTaskInline() 보호된 메소드

Runs the provided Task synchronously on the current thread.
protected TryExecuteTaskInline ( System.Threading.Tasks.Task task, bool taskWasPreviouslyQueued ) : bool
task System.Threading.Tasks.Task The task to be executed.
taskWasPreviouslyQueued bool Whether the Task was previously queued to the scheduler.
리턴 bool