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
Check: https://synopse.info/forum/viewtopic.php?id=6415
Last edited by igors233 (2024-02-28 13:56:37)
Offline
Pages: 1