C# Класс OpenNos.Core.Threading.Timer

This class is a timer that performs some tasks periodically.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Dispose ( ) : void
Start ( ) : void

Starts the timer.

Stop ( ) : void

Stops the timer.

Timer ( int period ) : System

Creates a new Timer.

Timer ( int period, bool runOnStart ) : System

Creates a new Timer.

WaitToStop ( ) : void

Waits the service to stop.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

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

Метод Описание
TimerCallBack ( object state ) : void

This method is called by _taskTimer.

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

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

public Dispose ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

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

Starts the timer.
public Start ( ) : void
Результат void

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

Stops the timer.
public Stop ( ) : void
Результат void

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

Creates a new Timer.
public Timer ( int period ) : System
period int Task period of timer (as milliseconds)
Результат System

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

Creates a new Timer.
public Timer ( int period, bool runOnStart ) : System
period int Task period of timer (as milliseconds)
runOnStart bool /// Indicates whether timer raises Elapsed event on Start method of Timer for once ///
Результат System

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

Waits the service to stop.
public WaitToStop ( ) : void
Результат void