C# 클래스 ModernApp4Me.WP8.Download.OneShotDispatcherTimer

Provides a one-shot timer integrated to the Dispatcher queue.
파일 보기 프로젝트 열기: smartnsoft/ModernApp4Me 1 사용 예제들

공개 메소드들

메소드 설명
CreateAndStart ( System.TimeSpan duration, EventHandler callback ) : OneShotDispatcherTimer

Creates a new OneShotDispatcherTimer and starts it.

OneShotDispatcherTimer ( ) : System

Initializes a new OneShotDispatcherTimer instance.

Start ( ) : void

Starts the timer. This method has no effect if the timer is already started.

The same OneShotDispatcherTimer instance can be started and stopped multiple times.

Stop ( ) : void

Stops the timer. This method has no effect if the timer is not started.

The Fired event is guaranteed not to be raised once this method has been invoked and until the timer is started again.

비공개 메소드들

메소드 설명
OnTimerTick ( object sender, EventArgs e ) : void

Listens to Tick events on the underlying timer.

RaiseFired ( ) : void

Raises the Fired event.

메소드 상세

CreateAndStart() 공개 정적인 메소드

Creates a new OneShotDispatcherTimer and starts it.
public static CreateAndStart ( System.TimeSpan duration, EventHandler callback ) : OneShotDispatcherTimer
duration System.TimeSpan The duration of the timer.
callback EventHandler The delegate that will be called when the timer fires.
리턴 OneShotDispatcherTimer

OneShotDispatcherTimer() 공개 메소드

Initializes a new OneShotDispatcherTimer instance.
public OneShotDispatcherTimer ( ) : System
리턴 System

Start() 공개 메소드

Starts the timer. This method has no effect if the timer is already started.
The same OneShotDispatcherTimer instance can be started and stopped multiple times.
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stops the timer. This method has no effect if the timer is not started.
The Fired event is guaranteed not to be raised once this method has been invoked and until the timer is started again.
public Stop ( ) : void
리턴 void