ISphinxContext from within a service

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?


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:

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.