C# Class SanderVantEinde.TelegramBot.TaskScheduler

Afficher le fichier Open project: sandervanteinde/TelegramBot

Méthodes publiques

Méthode Description
RegisterTask ( System.Action task, TaskMoment moment, bool repeat = true ) : ScheduleTask
RegisterTask ( System.Action task, System.TimeSpan frequency, bool repeat = true ) : ScheduleTask
RegisterTask ( AsyncAction task, TaskMoment moment, bool repeat = true ) : ScheduleTask
RegisterTask ( AsyncAction action, System.TimeSpan frequency, bool repeat = true ) : ScheduleTask
TaskScheduler ( TelegramBot bot ) : System

Private Methods

Méthode Description
AddScheduleTask ( ScheduleTask task ) : void
DoTasks ( ) : System.Threading.Tasks.Task

Method Details

RegisterTask() public méthode

public RegisterTask ( System.Action task, TaskMoment moment, bool repeat = true ) : ScheduleTask
task System.Action
moment TaskMoment
repeat bool
Résultat ScheduleTask

RegisterTask() public méthode

public RegisterTask ( System.Action task, System.TimeSpan frequency, bool repeat = true ) : ScheduleTask
task System.Action
frequency System.TimeSpan
repeat bool
Résultat ScheduleTask

RegisterTask() public méthode

public RegisterTask ( AsyncAction task, TaskMoment moment, bool repeat = true ) : ScheduleTask
task AsyncAction
moment TaskMoment
repeat bool
Résultat ScheduleTask

RegisterTask() public méthode

public RegisterTask ( AsyncAction action, System.TimeSpan frequency, bool repeat = true ) : ScheduleTask
action AsyncAction
frequency System.TimeSpan
repeat bool
Résultat ScheduleTask

TaskScheduler() public méthode

public TaskScheduler ( TelegramBot bot ) : System
bot TelegramBot
Résultat System