Base class for service controller. More...
Base class for service controller.
Public Member Methods | |
BaseServiceController (Int32 stackSize=DefaultStackSize) | |
Constructor. More... | |
void | SetName (PCChar8 name) |
Gets the service controller name. More... | |
const String & | GetName () |
Gets the service controller name. More... | |
bool | GetEnabled () const |
Query if the service controller is enabled . More... | |
void | SetEnabled (bool value) |
Enable the service controller . More... | |
void | SetEnabledSync (bool value) |
Enable the service controller with concurrent acces management. More... | |
void | RequestTerminate () |
Ask the termination of the service controller. More... | |
bool | WaitTerminated (TimeSpan timeout=TimeInfinite) |
Wait for the service controller to terminate. More... | |
void | SetPriority (ThreadPriority priority) |
Sets the priority of the service controller thread. More... | |
ThreadPriority | GetPriority () |
Gets the priority of the service controller thread. More... | |
const IReferenceList< BaseService > & | GetServices () const |
Gets the registered services. More... | |
BaseServiceController | ( | Int32 | stackSize = DefaultStackSize | ) |
Constructor.
stackSize | (optional) size of the thread service stack. Default = DefaultStackSize. |
bool GetEnabled | ( | ) | const |
Query if the service controller is enabled .
const String& GetName | ( | ) |
Gets the service controller name.
ThreadPriority GetPriority | ( | ) |
Gets the priority of the service controller thread.
|
inline |
Gets the registered services.
void RequestTerminate | ( | ) |
Ask the termination of the service controller.
void SetEnabled | ( | bool | value | ) |
Enable the service controller .
value | enable if true, diabled if not. |
void SetEnabledSync | ( | bool | value | ) |
Enable the service controller with concurrent acces management.
value | enable if true, diabled if not. |
void SetName | ( | PCChar8 | name | ) |
Gets the service controller name.
name | Name of the thread. |
void SetPriority | ( | ThreadPriority | priority | ) |
Sets the priority of the service controller thread.
priority | The priority. |
bool WaitTerminated | ( | TimeSpan | timeout = TimeInfinite | ) |
Wait for the service controller to terminate.
timeout | (optional) the time out. Default = TimeInfinite |