C# Class SanderVantEinde.TelegramBot.TaskScheduler

ファイルを表示 Open project: sandervanteinde/TelegramBot

Public Methods

Method 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

Method Description
AddScheduleTask ( ScheduleTask task ) : void
DoTasks ( ) : System.Threading.Tasks.Task

Method Details

RegisterTask() public method

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

RegisterTask() public method

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

RegisterTask() public method

public RegisterTask ( AsyncAction task, TaskMoment moment, bool repeat = true ) : ScheduleTask
task AsyncAction
moment TaskMoment
repeat bool
return ScheduleTask

RegisterTask() public method

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

TaskScheduler() public method

public TaskScheduler ( TelegramBot bot ) : System
bot TelegramBot
return System