C# Class ClearCanvas.ImageServer.Common.ThreadedService

Base class for a service that runs in a dedicated thread.
Mostra file Open project: jasper-yeh/ClearCanvas

Public Methods

Method Description
StartService ( ) : void

Start the service.

StopService ( ) : void

Stop the service.

StopService ( string reason ) : void

Protected Methods

Method Description
CheckStop ( int msDelay ) : bool

Check if a stop is requested.

Initialize ( ) : bool
Run ( ) : void
Stop ( ) : void
ThreadedService ( string name ) : System

Constructor.

Method Details

CheckStop() protected method

Check if a stop is requested.
protected CheckStop ( int msDelay ) : bool
msDelay int
return bool

Initialize() protected abstract method

protected abstract Initialize ( ) : bool
return bool

Run() protected abstract method

protected abstract Run ( ) : void
return void

StartService() public method

Start the service.
public StartService ( ) : void
return void

Stop() protected abstract method

protected abstract Stop ( ) : void
return void

StopService() public method

Stop the service.
public StopService ( ) : void
return void

StopService() public method

public StopService ( string reason ) : void
reason string
return void

ThreadedService() protected method

Constructor.
protected ThreadedService ( string name ) : System
name string The name of the service.
return System