Base class for Service. More...
Base class for Service.
Inheritance diagram for BaseService:Public Member Methods | |
| BaseService (BaseServiceController &serviceController) | |
| Constuctor. More... | |
| void | SetPeriod (TimeSpan period) |
| Set the period of the service. More... | |
| TimeSpan | GetPeriod () const |
| Gets the service period. More... | |
Protected Member Functions | |
| virtual void | InitialExecute () |
| Initial execution of the service. More... | |
| virtual void | CyclicExecute ()=0 |
| Cyclic execution of the service. More... | |
| virtual void | FinalExecute () |
| Final execution of the service. More... | |
| void | UnregisterServiceController () |
| Method used by inherited class to unregister the service controller. More... | |
| void | RegisterServiceController () |
| Method used by inherited class to register the service controller once completely created. More... | |
| BaseService | ( | BaseServiceController & | serviceController | ) |
Constuctor.
| serviceController | the service controller of the service category. |
|
protectedpure virtual |
Cyclic execution of the service.
Implemented in DelegateBackgroundService, and BasePersistent.
|
inlineprotectedvirtual |
Final execution of the service.
Reimplemented in BasePersistent.
| TimeSpan GetPeriod | ( | ) | const |
Gets the service period.
|
inlineprotectedvirtual |
Initial execution of the service.
|
protected |
Method used by inherited class to register the service controller once completely created.
| void SetPeriod | ( | TimeSpan | period | ) |
Set the period of the service.
| period | The period |
The service mechanism is waked up every milliseconds. The period should not by smaller than 1 milliseconds. The period value will be a discret number of milliseconds (ceil).
|
protected |
Method used by inherited class to unregister the service controller.
Private access allowed only by friend BaseService.