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
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf 1 사용 예제들

공개 메소드들

메소드 설명
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