
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. | |
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.
| DotNX::Core::ThreadedServiceBase::ThreadedServiceBase | ( | EventLog | el | ) | [protected] |
| 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.
| 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.
string [] DotNX::Core::ThreadedServiceBase::cmdArgs [protected] |
The service arguments.
There's no other way to make them available in the subthread.