Public Member Functions | |
abstract void | Start (string[] args) |
The service start method, to be implemented in subclasses. | |
abstract void | Stop () |
The service stop method, to be implemented in subclasses. | |
Protected Member Functions | |
ServiceBase (EventLog el) | |
Constructor. | |
void | Log (string msg) |
Logs a message to the service's event log. |
DotNX::Core::ServiceBase::ServiceBase | ( | EventLog | el | ) | [protected] |
Constructor.
el | A possibly null event log. |
abstract void DotNX::Core::ServiceBase::Start | ( | string[] | args | ) | [pure virtual] |
The service start method, to be implemented in subclasses.
args | The service arguments. |
Implemented in DotNX::Core::ThreadedServiceBase.
abstract void DotNX::Core::ServiceBase::Stop | ( | ) | [pure virtual] |
The service stop method, to be implemented in subclasses.
Implemented in DotNX::Core::ThreadedServiceBase.
void DotNX::Core::ServiceBase::Log | ( | string | msg | ) | [protected] |
Logs a message to the service's event log.
If the log is null
it doesn't do anything.
msg | The message to be logged. |