DotNX::Core::ThreadedServiceBase Class Reference

Supports the implementation of Windows services that run in a separate thread. More...

Inheritance diagram for DotNX::Core::ThreadedServiceBase:

DotNX::Core::ServiceBase

List of all members.

Public Member Functions

override void Start (string[] args)
 Starts the service by starting the worker thread.
override void Stop ()
 Stops the service by aborting the service thread.

Protected Member Functions

 ThreadedServiceBase (EventLog el)
abstract void Run ()

Protected Attributes

string[] cmdArgs
 The service arguments.


Detailed Description

Supports the implementation of Windows services that run in a separate thread.

TODO: Refactor together with its base class. All services run in a separate thread, so why the distinction? It would be more interesting to implement a way to run multiple instances of the service in a thread pool. It should also be better integrated with the DotNX.Core.Thread class.


Constructor & Destructor Documentation

DotNX::Core::ThreadedServiceBase::ThreadedServiceBase ( EventLog  el  )  [protected]


Member Function Documentation

abstract void DotNX::Core::ThreadedServiceBase::Run (  )  [protected, pure virtual]

override void DotNX::Core::ThreadedServiceBase::Start ( string[]  args  )  [virtual]

Starts the service by starting the worker thread.

Parameters:
args The service arguments.

Implements DotNX::Core::ServiceBase.

override void DotNX::Core::ThreadedServiceBase::Stop (  )  [virtual]

Stops the service by aborting the service thread.

Should probably less abrupt.

Implements DotNX::Core::ServiceBase.


Member Data Documentation

The service arguments.

There's no other way to make them available in the subthread.


The documentation for this class was generated from the following file:

SourceForge.net Logo
Generated on Sat Oct 18 14:13:26 2008 for .Nick's 0.1.0 by  doxygen 1.5.7.1