You are not logged in.
Hi,
I am getting the following error when am adding a interface method with TSQLRestServerURIContext.
"Project mORMotRESTsrv.exe raised exception class EInterfaceFactoryException with message 'TInterfaceFactoryRTTI.Create: IRestMethods.UploadFile "Ctxt" parameter has unexpected type TSQLRestServerURIContext - use TJSONSerializer.RegisterCustomSerializer()'"
is it impossible to use?
Thanks
VIJESH
Offline
You can't use a TSQLRestServerURIContext in an interface-based service, since it expects all parameters to be passed by value, and a TSQLRestServerURIContext is not a value object.
But you can access it via a global threadvar.
Or mix interface-based services and method-based services, if needed.
Offline