C# Класс RemoteViewing.Utility.PollingSynchronizationContext

A synchronization context that can be used if you want to handle events by polling.
Наследование: System.Threading.SynchronizationContext
Показать файл Открыть проект

Открытые методы

Метод Описание
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