TTimer in TDSServerModule
TTimer in TDSServerModule
Hello, I am creating an application datasnap and server need to put a timer, however it does not run the OnTimer. Anyone know how to do this? thank you
Hello, I am creating an application datasnap and server need to put a timer, however it does not run the OnTimer. Anyone know how to do this? thank you
I have never tried this, but it will probably only work if you choose Lifecycle Server or Session. If it is a REST server - or if it runs in an IIS module - it will most probably not work at all.
ReplyDeleteWhy would you do that? You probably should have the timer running on the client side - or am I wrong?
in no way the livecycle it works. If the client application is terminated, for example, CTRL + ALT + DEL the DSServerModule still gets created. I want to manage it. Do not know of another way to do this using DataSnap by http
ReplyDeleteI do not fully understand what you are trying to achieve, but could you perhabs use the OnCreateInstance event of the server class in the server container? Or the OnShutdown, OnCloseQuery - it depends on the type of server (service, Form ...).
ReplyDelete