Method ServiceApp():start() Foundation

Starts the service process.

Syntax
:start() --> self
Return

The class method returns the class object.

Description

The service process starts when this class method is called which usually occurs in the procedure Main() of the service application. :start() creates the service process and executes the callback method :main() to run the actual task performed by the service.

The class method returns when two conditions are met: the service has finished its :main() callback method and has received a "stop" control request.

When the service application is running in the debugger, no service process is created and the :main() callback is called directly. This way, it is possible to debug a service application.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.