C# 클래스 GSF.Threading.SharedTimer

Represents a timer class that will group registered timer event callbacks that operate on the same interval in order to optimize thread pool queuing.

Externally the SharedTimer operations similar to the System.Timers.Timer. Internally the timer pools callbacks with the same Interval into a single timer where each callback is executed on the same thread, per instance of the SharedTimerScheduler.

Any long running callbacks that have a risk of long delays should not use SharedTimer as this will effect the reliability of all of the other SharedTimer instances for a given SharedTimerScheduler.

상속: IDisposable
파일 보기 프로젝트 열기: GridProtectionAlliance/gsf 1 사용 예제들

공개 메소드들

메소드 설명
Close ( ) : void

Stops the timer.

Dispose ( ) : void

Stops the timer and prevents reuse of the class.

Start ( ) : void

Starts raising the Elapsed event by setting Enabled to true.

Stop ( ) : void

Stops raising the Elapsed event by setting Enabled to false.

비공개 메소드들

메소드 설명
SharedTimer ( SharedTimerScheduler scheduler, int interval = 100 ) : System
TimerCallback ( System.DateTime state ) : void

Callback from SharedTimerScheduler.

메소드 상세

Close() 공개 메소드

Stops the timer.
public Close ( ) : void
리턴 void

Dispose() 공개 메소드

Stops the timer and prevents reuse of the class.
public Dispose ( ) : void
리턴 void

Start() 공개 메소드

Starts raising the Elapsed event by setting Enabled to true.
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stops raising the Elapsed event by setting Enabled to false.
public Stop ( ) : void
리턴 void