A Windows Services class should
inherit from the System.ServiceProcess.ServiceBase class.
We should override methods of this class and define functionality for them to
determine how your service behaves.
The following are the main methods which should be overwritten to implement the functionality of a Windows service.
The following are the main methods which should be overwritten to implement the functionality of a Windows service.
Method
|
Descripion
|
OnStart
|
Gets triggers when the service is started, write code here
which should be executed when the service is started.
|
OnPause
|
Gets triggers when the service is paused, write code here
which should be executed when the service is paused.
|
OnStop
|
Gets triggers when the service is stopped, write code here
which should be executed when the service is stopped.
|
OnContinue
|
Gets triggers when a paussed service is made to contibue its
operation, write code here which should be executed when the service
continues excution from a paused state.
|
OnShutdown
|
Gets triggers when the service is stut down, write code here
which should be executed when the service is shut down.
|
No comments:
Post a Comment