I have a Sphinx server which also has service implemented for handling registration request.
I'd like to get an ISphinxContext from within the service (on the main datamodule I can use SphinxServer1.CreateContext), is this possible?
Thanks
I have a Sphinx server which also has service implemented for handling registration request.
I'd like to get an ISphinxContext from within the service (on the main datamodule I can use SphinxServer1.CreateContext), is this possible?
Thanks
You can still use SphinxServer1.CreateContext
, it will provide you with the context of the request being processed, if there is any.
If you want you can create a Sphinx context in a middleware and set it in the current context yourself. From the service you just get it from the context:
https://doc.tmssoftware.com/biz/sparkle/guide/middleware.html#passing-data-through-context
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.