You are not logged in.
Pages: 1
Hello,
I need some help, probably something very basic...
I'm currently refactoring our code to use mORMot version 2 and I can't find the function CurrentServiceContext (previously found on the mORMot.pas unit) to get the TServiceRunningContext.
Thank you.
Offline
I'm currently refactoring our code to use mORMot version 2 and I can't find the function CurrentServiceContext (previously found on the mORMot.pas unit) to get the TServiceRunningContext.
Unit mormot.rest.server
ServiceRunningContext, or better use TInjectableObjectRest for Interface-based Services.
With best regards
Thomas
Offline
Yes, this was renamed for consistency.
And was already found confusing by some users.
I have added added a wrapper in not PUREMORMOT2 mode:
https://github.com/synopse/mORMot2/commit/8c379806
And Thomas is right, using TInjectableObjectRest is a cleaner approach - if you can.
Offline
Thank you for this, it is working.
I did miss another thing... The NamedPipe server... It is not available anymore?
Offline
Hello.. I still can't find the NamedPipe server, can someone please point me in the right direction or confirm it is not available anymore?
Thank you.
Offline
Check: https://synopse.info/forum/viewtopic.php?id=6415
Last edited by igors233 (2024-02-28 13:56:37)
Offline
Thanks igors233, now I can move on
Offline
Pages: 1