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

Represents a Thread that invokes a specific action at a specific interval
Показать файл Открыть проект

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

Метод Описание
Signal ( ) : void

Signals the PeriodicThread that an action should be performed.

Start ( System.Action action, Func getUpdateRateFunc, bool useSignal ) : void

Invokes the action at a frequency specified by getUpdateRateFunc; optionally waiting for a signal to execute the action.

Stop ( ) : void

Stops this PeriodicThread.

Описание методов

Signal() публичный Метод

Signals the PeriodicThread that an action should be performed.
public Signal ( ) : void
Результат void

Start() публичный Метод

Invokes the action at a frequency specified by getUpdateRateFunc; optionally waiting for a signal to execute the action.
public Start ( System.Action action, Func getUpdateRateFunc, bool useSignal ) : void
action System.Action /// The action to run at the frequency specifie. ///
getUpdateRateFunc Func /// A function that returns at which frequency (in Hz) the should /// be performed. ///
useSignal bool /// to wait for before executing the action; /// otherwise, . ///
Результат void

Stop() публичный Метод

Stops this PeriodicThread.
public Stop ( ) : void
Результат void