C# Class HA4IoT.Services.Scheduling.SchedulerService

Inheritance: HA4IoT.Contracts.Services.ServiceBase, ISchedulerService
显示文件 Open project: chkr1011/CK.HomeAutomation Class Usage Examples

Public Methods

Method Description
HandleApiCall ( IApiContext apiContext ) : void
In ( System.TimeSpan dueTime ) : TimedAction
In ( System.TimeSpan dueTime, System.Action action ) : void
RegisterSchedule ( string name, System.TimeSpan interval, System.Action action ) : void
SchedulerService ( ITimerService timerService, IDateTimeService dateTimeService ) : System
Startup ( ) : void

Private Methods

Method Description
ExecuteSchedule ( Schedule schedule ) : void
ExecuteSchedules ( ) : void

Method Details

HandleApiCall() public method

public HandleApiCall ( IApiContext apiContext ) : void
apiContext IApiContext
return void

In() public method

public In ( System.TimeSpan dueTime ) : TimedAction
dueTime System.TimeSpan
return HA4IoT.Contracts.Core.TimedAction

In() public method

public In ( System.TimeSpan dueTime, System.Action action ) : void
dueTime System.TimeSpan
action System.Action
return void

RegisterSchedule() public method

public RegisterSchedule ( string name, System.TimeSpan interval, System.Action action ) : void
name string
interval System.TimeSpan
action System.Action
return void

SchedulerService() public method

public SchedulerService ( ITimerService timerService, IDateTimeService dateTimeService ) : System
timerService ITimerService
dateTimeService IDateTimeService
return System

Startup() public method

public Startup ( ) : void
return void