You are not logged in.
Pages: 1
Tried grep searching for ServicesRun in momot2 sources but could not find the implementation codes. In mormot1 it is under mORMotService.pas. Is there an equivalent global function to start registered services from the main application?
TIA
Offline
In fact, only TServiceSingle works in mORmot 2.
The multi-service feature of mORMot 1 was never properly working, so has been disabled.
So you should just instantiate a TServiceSingle instance (and not a TService) then call the global ServiceSingleRun method.
See how TSynDaemon.Command handle cNone kind of request:
https://github.com/synopse/mORMot2/blob … n.pas#L545
I have made the documentation more explicit about all this:
https://github.com/synopse/mORMot2/commit/05da7807
Online
Thank you so much AB
Offline
Pages: 1