Describe the programming model of a windows service.Windows services are based on the class that is inherited from System.ServiceProcess.ServiceBase class. Methods from this class are overridden to provide the functionality as per the user’s requirement.
The important classes involved in service creation are:
1. ServiceBase 2. OnStart 3. OnPause 4. OnStop 5. OnContinue 6. OnShutdown 7. OnCustomCommand 8. OnPowerEvent 9. ServiceProcessInstaller 10. ServiceInstaller 11. ServiceController
|