#1 2021-03-31 06:41:38

VojkoCendak
Member
From: Celje Slovenia
Registered: 2012-09-02
Posts: 88

Method based services optExecInMainThread

Hi,

Is it possible ?
(I know about multithreading, but we're using COM objects ...)
It's possible in interfaced methods (and they work perfectly for several years now).

Thank you,
Vojko

Offline

#2 2021-03-31 12:31:45

pvn0
Member
From: Slovenia
Registered: 2018-02-12
Posts: 210

Re: Method based services optExecInMainThread

You can set the execution mode for method based services in your TSQLRestServer

FServer.AcquireExecutionMode[TSQLRestServerURIContextCommand.execSOAByMethod] := amMainThread; 

Offline

#3 2021-03-31 13:27:42

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,205
Website

Re: Method based services optExecInMainThread

Yes, but note that this will be for all methods.

Offline

#4 2021-03-31 14:40:01

VojkoCendak
Member
From: Celje Slovenia
Registered: 2012-09-02
Posts: 88

Re: Method based services optExecInMainThread

Great,
Thank you

Offline

Board footer

Powered by FluxBB