User-defined start classes

You can define start classes that are loaded automatically when the server is started. The purpose of this feature is to allow
you to write .NET code that executes at the time the MobiLink server starts the CLR—before the first synchronization. This
means you can create connections or cache data before the first user synchronization request in the server instance.

You do this with the MLStartClasses option of the mlsrv12 -sl dnet option. For example, the following is part of an mlsrv12
command line. It causes mycl1 and mycl2 to be loaded as start classes.

The following is a start class template. It starts a daemon thread that processes events and creates a database connection.
(Not all start classes need to create a thread but if a thread is spawned it should be a daemon thread.)