#1 2022-02-12 10:11:01

radexpol
Member
From: Poland, Krk
Registered: 2019-11-29
Posts: 116

Unregister Service

How to unregister service from TRestClientUri that has been registered by ServiceDefine( )? I would like to remove all registered services on reconnect without destroying TRestClientUri. I cannot find the ServiceUndefine or ServiceContainer.Clear;

Offline

#2 2022-02-12 11:10:44

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

Re: Unregister Service

There is no such feature yet.
But I guess this is easy in your own code to check for a particular expected behavior.

On server side it was not possible because it broke some internal structures (see a previous discussion in this forum).
On client side it may be possible but may need a set of new methods, with proper testing.

Offline

Board footer

Powered by FluxBB