You are not logged in.
Should I add a remote server to a TSQLHttpServer in runtime? Is it easy to add a TSQLRestServer to TSQLHttpServer or add new service to TSQLRestServer by ServiceDefine? If I define a TSQLRestServer on BPL or DLL, It can Add to TSQLHttpServer( in exe) in runtime?
Offline
Good question.
You could call TSQLHttpServer.AddServer but the method was not thread-safe so there may have been a problem if a request comes at that very exact time.
I've now ensured that TSQLHttpServer.AddServer/RemoveServer are thread-safe.
See https://synopse.info/fossil/info/c46139b2f7
You could now add/remove TSQLRestServer instances safely at runtime.
BTW, don't use packages for your plugins.
Regular dll are just fine, and don't suffer from problems when you unload them.
Offline
Thank's AB!
Offline