C# Класс ModernApp4Me.WP8.Download.OneShotDispatcherTimer

Provides a one-shot timer integrated to the Dispatcher queue.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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