C# Class RockJobSchedulerService.JobScheduler

Inheritance: System.ServiceProcess.ServiceBase
显示文件 Open project: NewSpring/Rock

Public Methods

Method Description
JobScheduler ( ) : System

Initializes a new instance of the JobScheduler class.

StartJobScheduler ( ) : void

Starts the job scheduler.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnStart ( string args ) : void

When implemented in a derived class, executes when a Start command is sent to the service by the Service Control Manager (SCM) or when the operating system starts (for a service that starts automatically). Specifies actions to take when the service starts.

OnStop ( ) : void

When implemented in a derived class, executes when a Stop command is sent to the service by the Service Control Manager (SCM). Specifies actions to take when a service stops running.

Private Methods

Method Description
DrainTransactionQueue ( ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

timer_Elapsed ( object sender, EventArgs e ) : void

Handles the Elapsed event of the timer control.

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

JobScheduler() public method

Initializes a new instance of the JobScheduler class.
public JobScheduler ( ) : System
return System

OnStart() protected method

When implemented in a derived class, executes when a Start command is sent to the service by the Service Control Manager (SCM) or when the operating system starts (for a service that starts automatically). Specifies actions to take when the service starts.
protected OnStart ( string args ) : void
args string Data passed by the start command.
return void

OnStop() protected method

When implemented in a derived class, executes when a Stop command is sent to the service by the Service Control Manager (SCM). Specifies actions to take when a service stops running.
protected OnStop ( ) : void
return void

StartJobScheduler() public method

Starts the job scheduler.
public StartJobScheduler ( ) : void
return void