C# 클래스 RemoteViewing.Utility.PollingSynchronizationContext

A synchronization context that can be used if you want to handle events by polling.
상속: System.Threading.SynchronizationContext
파일 보기 프로젝트 열기: qmfrederik/remoteviewing

공개 메소드들

메소드 설명
CheckEvents ( int timeout ) : bool

Dequeues and runs an action, if one is queued.

Post ( SendOrPostCallback d, object state ) : void

Posts an action to run when PollingSynchronizationContext.CheckEvents is called. This will not block.

Send ( SendOrPostCallback d, object state ) : void

Sends an action to run when PollingSynchronizationContext.CheckEvents is called. This will block until then. This will lock up if you call it from the same thread you use for checking events.

비공개 메소드들

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

Post an action to run when PollingSynchronizationContext.CheckEvents is called. This will not block.

메소드 상세

CheckEvents() 공개 메소드

Dequeues and runs an action, if one is queued.
public CheckEvents ( int timeout ) : bool
timeout int The number of milliseconds to wait for an action to run.
리턴 bool

Post() 공개 메소드

Posts an action to run when PollingSynchronizationContext.CheckEvents is called. This will not block.
public Post ( SendOrPostCallback d, object state ) : void
d SendOrPostCallback The callback.
state object State to pass to the callback.
리턴 void

Send() 공개 메소드

Sends an action to run when PollingSynchronizationContext.CheckEvents is called. This will block until then. This will lock up if you call it from the same thread you use for checking events.
public Send ( SendOrPostCallback d, object state ) : void
d SendOrPostCallback The callback.
state object State to pass to the callback.
리턴 void