#1 2019-11-14 20:55:06

xiwuping
Member
Registered: 2018-02-11
Posts: 32

Can Interfaced Service return another interfaced service?

Is it "legal" to have an interfaced service to return another interfaced service?

INetwork = interface(IInvokable)
.....
end;

ISimulation = interface(IInvokable)
   function GetNetwork: INetwork;           <----------------------- is this allowed in interfaced service?
end;

Offline

#2 2019-11-15 16:05:19

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

Re: Can Interfaced Service return another interfaced service?

This is not possible by principle.
In SOA/REST, values are transmitted by REpresentation (the REST 2 first letters).
There is no "local instance" on the client side.

What you can do is define a sicPerClient kind of interface, then add some context to it.
See the doc about sicPerClient.

Offline

Board footer

Powered by FluxBB