C# 클래스 Tests.MockSynchronizationContext

Prism's UI thread option works by invoking Post on the current synchronization context. When we do that, base.Post actually looses SynchronizationContext.Current because the work has been delegated to ThreadPool.QueueUserWorkItem. This implementation makes our async-intended call behave synchronously, so we can preserve and verify sync contexts for callbacks during our unit tests.
상속: System.Threading.SynchronizationContext
파일 보기 프로젝트 열기: LongoMatch/longomatch

공개 메소드들

메소드 설명
Post ( SendOrPostCallback d, object state ) : void
Send ( SendOrPostCallback d, object state ) : void

메소드 상세

Post() 공개 메소드

public Post ( SendOrPostCallback d, object state ) : void
d SendOrPostCallback
state object
리턴 void

Send() 공개 메소드

public Send ( SendOrPostCallback d, object state ) : void
d SendOrPostCallback
state object
리턴 void