C# Class KeepAliveBackgroundTaskBase, TabMigrate

Base class for "keep alive" work that runs in a background interval
Datei anzeigen Open project: tableau/TabMigrate Class Usage Examples

Public Methods

Method Description
Execute ( ) : void

Set the background task running

ExitAsync ( ) : void

Signals that the keep alive thread should go away

KeepAliveBackgroundTaskBase ( TimeSpan keepAliveInterval ) : System

Constructor

Protected Methods

Method Description
PerformKeepAliveTask ( ) : void

Inhereting classes must implement this method. It is the work that needs to be performed to keep us alive

Private Methods

Method Description
StartThreadHere ( ) : void

Thread entry point

Method Details

Execute() public method

Set the background task running
public Execute ( ) : void
return void

ExitAsync() public method

Signals that the keep alive thread should go away
public ExitAsync ( ) : void
return void

KeepAliveBackgroundTaskBase() public method

Constructor
public KeepAliveBackgroundTaskBase ( TimeSpan keepAliveInterval ) : System
keepAliveInterval TimeSpan
return System

PerformKeepAliveTask() protected abstract method

Inhereting classes must implement this method. It is the work that needs to be performed to keep us alive
protected abstract PerformKeepAliveTask ( ) : void
return void