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:
a. ServiceBase
a. OnStart
b. OnPause
c. OnStop
d. OnContinue
e. OnShutdown
f. OnCustomCommand
g. OnPowerEvent
b. ServiceProcessInstaller
c. ServiceInstaller
d. ServiceController