C# Класс fCraft.SchedulerTask

A task to be executed by the Scheduler. Stores timing information and state.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
RunForever SchedulerTask
SchedulerTask System
SchedulerTask System
SchedulerTask System

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

Метод Описание
RunForever ( System.TimeSpan interval ) : SchedulerTask

Runs the task forever at a given interval, until manually stopped.

RunForever ( System.TimeSpan interval, System.TimeSpan delay ) : SchedulerTask

Runs the task forever at a given interval after an initial delay, until manually stopped.

RunForever ( object userState, System.TimeSpan interval, System.TimeSpan delay ) : SchedulerTask

Runs the task forever at a given interval after an initial delay, until manually stopped.

RunManual ( ) : SchedulerTask

Executes the task once immediately, and suspends (but does not stop). A SchedulerTask object can be reused many times if ran manually.

RunManual ( System.DateTime time ) : SchedulerTask

Executes the task once at a given time, and suspends (but does not stop). A SchedulerTask object can be reused many times if ran manually.

RunManual ( System.TimeSpan delay ) : SchedulerTask

Executes the task once after a delay, and suspends (but does not stop). A SchedulerTask object can be reused many times if ran manually.

RunOnce ( ) : SchedulerTask

Runs the task once, as quickly as possible. Callback is invoked from the Scheduler thread.

RunOnce ( System.DateTime time ) : SchedulerTask

Runs the task once at a given date. If the given date is in the past, the task is ran immediately.

RunOnce ( System.TimeSpan delay ) : SchedulerTask

Runs the task once, after a given delay.

RunOnce ( object userState, System.DateTime time ) : SchedulerTask

Runs the task once at a given date. If the given date is in the past, the task is ran immediately.

RunOnce ( object userState, System.TimeSpan delay ) : SchedulerTask

Runs the task once, after a given delay.

RunRepeating ( System.TimeSpan delay, System.TimeSpan interval, int times ) : SchedulerTask

Runs the task a given number of times, at a given interval after an initial delay.

RunRepeating ( [ userState, System.TimeSpan delay, System.TimeSpan interval, int times ) : SchedulerTask

Runs the task a given number of times, at a given interval after an initial delay.

Stop ( ) : SchedulerTask

Stops the task, and removes it from the schedule.

ToString ( ) : string

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

Метод Описание
RunForever ( ) : SchedulerTask
SchedulerTask ( ) : System
SchedulerTask ( [ callback, bool isBackground ) : System
SchedulerTask ( [ callback, bool isBackground, [ userState ) : System

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

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

Runs the task forever at a given interval, until manually stopped.
public RunForever ( System.TimeSpan interval ) : SchedulerTask
interval System.TimeSpan
Результат SchedulerTask

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

Runs the task forever at a given interval after an initial delay, until manually stopped.
public RunForever ( System.TimeSpan interval, System.TimeSpan delay ) : SchedulerTask
interval System.TimeSpan
delay System.TimeSpan
Результат SchedulerTask

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

Runs the task forever at a given interval after an initial delay, until manually stopped.
public RunForever ( object userState, System.TimeSpan interval, System.TimeSpan delay ) : SchedulerTask
userState object
interval System.TimeSpan
delay System.TimeSpan
Результат SchedulerTask

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

Executes the task once immediately, and suspends (but does not stop). A SchedulerTask object can be reused many times if ran manually.
public RunManual ( ) : SchedulerTask
Результат SchedulerTask

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

Executes the task once at a given time, and suspends (but does not stop). A SchedulerTask object can be reused many times if ran manually.
public RunManual ( System.DateTime time ) : SchedulerTask
time System.DateTime
Результат SchedulerTask

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

Executes the task once after a delay, and suspends (but does not stop). A SchedulerTask object can be reused many times if ran manually.
public RunManual ( System.TimeSpan delay ) : SchedulerTask
delay System.TimeSpan
Результат SchedulerTask

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

Runs the task once, as quickly as possible. Callback is invoked from the Scheduler thread.
public RunOnce ( ) : SchedulerTask
Результат SchedulerTask

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

Runs the task once at a given date. If the given date is in the past, the task is ran immediately.
public RunOnce ( System.DateTime time ) : SchedulerTask
time System.DateTime
Результат SchedulerTask

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

Runs the task once, after a given delay.
public RunOnce ( System.TimeSpan delay ) : SchedulerTask
delay System.TimeSpan
Результат SchedulerTask

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

Runs the task once at a given date. If the given date is in the past, the task is ran immediately.
public RunOnce ( object userState, System.DateTime time ) : SchedulerTask
userState object
time System.DateTime
Результат SchedulerTask

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

Runs the task once, after a given delay.
public RunOnce ( object userState, System.TimeSpan delay ) : SchedulerTask
userState object
delay System.TimeSpan
Результат SchedulerTask

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

Runs the task a given number of times, at a given interval after an initial delay.
public RunRepeating ( System.TimeSpan delay, System.TimeSpan interval, int times ) : SchedulerTask
delay System.TimeSpan
interval System.TimeSpan
times int
Результат SchedulerTask

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

Runs the task a given number of times, at a given interval after an initial delay.
public RunRepeating ( [ userState, System.TimeSpan delay, System.TimeSpan interval, int times ) : SchedulerTask
userState [
delay System.TimeSpan
interval System.TimeSpan
times int
Результат SchedulerTask

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

Stops the task, and removes it from the schedule.
public Stop ( ) : SchedulerTask
Результат SchedulerTask

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

public ToString ( ) : string
Результат string