C# 클래스 SonarLint.VisualStudio.Progress.UnitTests.SingleThreadedTaskSchedulerService

Test implementation of IVsTaskSchedulerService which runs all the tasks on the same thread as the calling code
상속: SVsTaskSchedulerService, IVsTaskSchedulerService
파일 보기 프로젝트 열기: SonarSource-VisualStudio/sonarlint-visualstudio 1 사용 예제들

공개 메소드들

메소드 설명
RunInUIContext ( System.Action action ) : void

Test helper to run test code in a pseudo-UI context that will let the platform code to behave nicely

SetCurrentThreadIsUIThread ( bool uiThread ) : void
SingleThreadedTaskSchedulerService ( ) : Microsoft.VisualStudio.Shell

비공개 메소드들

메소드 설명
IVsTaskSchedulerService ( uint context, IVsTaskBody taskBody ) : IVsTask
IVsTaskSchedulerService ( uint context, uint tasks, IVsTask dependentTasks, IVsTaskBody taskBody ) : IVsTask
IVsTaskSchedulerService ( uint context, uint tasks, IVsTask dependentTasks, uint options, IVsTaskBody taskBody, object asyncState ) : IVsTask
IVsTaskSchedulerService ( uint context, uint options, IVsTaskBody taskBody, object asyncState ) : IVsTask
IVsTaskSchedulerService ( ) : IVsTaskCompletionSource
IVsTaskSchedulerService ( uint options, object asyncState ) : IVsTaskCompletionSource
SetCurrentThreadContextAs ( VsTaskRunContext context ) : void

Simulates the current thread as the specified context when ThreadHelper.CheckAccess is used

메소드 상세

RunInUIContext() 공개 메소드

Test helper to run test code in a pseudo-UI context that will let the platform code to behave nicely
public RunInUIContext ( System.Action action ) : void
action System.Action The action to run
리턴 void

SetCurrentThreadIsUIThread() 공개 메소드

public SetCurrentThreadIsUIThread ( bool uiThread ) : void
uiThread bool
리턴 void

SingleThreadedTaskSchedulerService() 공개 메소드

public SingleThreadedTaskSchedulerService ( ) : Microsoft.VisualStudio.Shell
리턴 Microsoft.VisualStudio.Shell