C# Class Candor.Tasks.WorkerRole

A container for running any number of configured background tasks.
This is designed to be run within a windows service or a Windows Azure worker role instance.
Inheritance: IDisposable
ファイルを表示 Open project: michael-lang/candor-common

Public Methods

Method Description
Dispose ( ) : void

Disposed of resources used by this monitor.

OnStart ( ) : void

Starts this worker role and all containing tasks.

OnStop ( ) : void

Stops the worker role and all contained tasks.

WorkerRole ( ProviderCollection tasks ) : System

The primary constructor taking in the tasks to be run in this role.

Private Methods

Method Description
ClearTimer ( ) : void
Dispose ( bool disposing ) : void
PauseTimer ( ) : void
ResetTimer ( ) : void
ResumeTimer ( ) : void
StartTimer ( ) : void
WorkerRole ( ) : System
mainTimer__Elapsed ( object sender ) : void

Method Details

Dispose() public method

Disposed of resources used by this monitor.
public Dispose ( ) : void
return void

OnStart() public method

Starts this worker role and all containing tasks.
public OnStart ( ) : void
return void

OnStop() public method

Stops the worker role and all contained tasks.
public OnStop ( ) : void
return void

WorkerRole() public method

The primary constructor taking in the tasks to be run in this role.
public WorkerRole ( ProviderCollection tasks ) : System
tasks ProviderCollection
return System