[Overview][Resource strings][Types][Classes][Procedures and functions][Variables][Index] |
Daemon execute event
Source position: daemonapp.pp line 110
published property TDaemon.OnExecute : TDaemonEvent |
OnExecute is executed once after the daemon was started. If assigned, it should perform whatever operation the daemon is designed.
If the daemon's action is event based, then no OnExecute handler is needed, and the events will control the daemon's execution: the daemon thread will then go in a loop, passing control messages to the daemon.
If an OnExecute event handler is present, the checking for control messages must be done by the implementation of the OnExecute handler.
|
Daemon start event |
|
|
Daemon stop event |