C# Класс GSF.Threading.SharedTimerScheduler

Represents a timer manager which is the scheduler of SharedTimer.
A SharedTimer with the same scheduler will use the same ThreadPool thread to process all of the SharedTimer instances in series when they have a common interval. Call order, based on registration sequence, will be preserved.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CreateTimer ( int interval = 100 ) : SharedTimer

Creates a SharedTimer using the current SharedTimerScheduler.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

SharedTimerScheduler ( ) : System

Creates a new instance of the SharedTimerScheduler class.

Приватные методы

Метод Описание
RegisterCallback ( int interval, Action callback ) : WeakAction
RegisterCallback ( int interval, WeakAction weakAction ) : WeakAction
ReportStatus ( object sender, EventArgs e ) : void

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

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

Creates a SharedTimer using the current SharedTimerScheduler.
public CreateTimer ( int interval = 100 ) : SharedTimer
interval int The interval of the timer, default is 100.
Результат SharedTimer

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

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

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

Creates a new instance of the SharedTimerScheduler class.
public SharedTimerScheduler ( ) : System
Результат System