C# Класс Recognos.Core.SimpleScheduler

Simple scheduler class
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

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

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

SimpleScheduler ( System.Action task, string timeToRun ) : System

Initializes a new instance of the SimpleScheduler class.

SimpleScheduler ( System.Action task, string timeToRunTask, System.TimeSpan interval ) : System

Initializes a new instance of the SimpleScheduler class.

Start ( ) : void

Starts the scheduler.

Stop ( ) : void

Stops the scheduler.

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

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

Runs the scheduled task.

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

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

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

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

Initializes a new instance of the SimpleScheduler class.
public SimpleScheduler ( System.Action task, string timeToRun ) : System
task System.Action The task to run.
timeToRun string The time to run.
Результат System

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

Initializes a new instance of the SimpleScheduler class.
public SimpleScheduler ( System.Action task, string timeToRunTask, System.TimeSpan interval ) : System
task System.Action The task to run.
timeToRunTask string The time to run task.
interval System.TimeSpan The interval.
Результат System

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

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

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

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