C# 클래스 Microsoft.UnitTests.Core.Threading.ControlledTaskScheduler

상속: System.Threading.Tasks.TaskScheduler
파일 보기 프로젝트 열기: Microsoft/RTVS 1 사용 예제들

공개 메소드들

메소드 설명
ControlledTaskScheduler ( SynchronizationContext syncContext ) : System
GetAwaiter ( ) : TaskAwaiter
Pause ( ) : IDisposable
Wait ( ) : void

Waits until scheduler queue is empty

WaitForUpcomingTasks ( int ms = 1000 ) : void

Waits for tasks to be scheduled and then until scheduler queue is empty If there are tasks in the queue already, behaves similar to Wait().

비공개 메소드들

메소드 설명
AfterTaskExecuted ( Task task ) : void
Callback ( Task task ) : void
GetScheduledTasks ( ) : IEnumerable
QueueTask ( Task task ) : void
Resume ( ) : void
TryExecuteTaskInline ( Task task, bool taskWasPreviouslyQueued ) : bool

메소드 상세

ControlledTaskScheduler() 공개 메소드

public ControlledTaskScheduler ( SynchronizationContext syncContext ) : System
syncContext System.Threading.SynchronizationContext
리턴 System

GetAwaiter() 공개 메소드

public GetAwaiter ( ) : TaskAwaiter
리턴 TaskAwaiter

Pause() 공개 메소드

public Pause ( ) : IDisposable
리턴 IDisposable

Wait() 공개 메소드

Waits until scheduler queue is empty
public Wait ( ) : void
리턴 void

WaitForUpcomingTasks() 공개 메소드

Waits for tasks to be scheduled and then until scheduler queue is empty If there are tasks in the queue already, behaves similar to Wait().
public WaitForUpcomingTasks ( int ms = 1000 ) : void
ms int /// Number of milliseconds to wait until task is scheduled. /// Should be greater than 0. /// Default value is 1000ms. ///
리턴 void