#1 2015-01-17 21:17:44

jairgza
Member
Registered: 2015-01-15
Posts: 10

Interfaced base plugin, call ServiceRegister in runtime

Is there a way to call ServiceRegister from a method to dinamicaly register interfaces on a runing mORMot server ?

Thinking on a kind of plugin framework that in runtime can load, register an interface, client uses the interface then unregister and unload module

Offline

#2 2015-01-17 22:03:22

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

Re: Interfaced base plugin, call ServiceRegister in runtime

I think you can call ServiceRegister() when the server is running.
Only issue may be with unregister if a service is still running.

But it has not been fully tested yet.
Feedback is welcome!

Offline

#3 2015-02-27 14:27:12

CycleSoft
Member
Registered: 2013-01-18
Posts: 34

Re: Interfaced base plugin, call ServiceRegister in runtime

@jairgza:
any advance with your idea?
I was wondering exactly the same: Build a very light server that handles only few things like configuration and administration, and when requested with a interface-type service load the module that will handle it.

Don't know if unloading the module after the use will be a plus or a performance minus... in a development environment it is certainly a plus, but in production....

Offline

Board footer

Powered by FluxBB