You are not logged in.
Class TSQLRestServer has three methods of registering services:
function ServiceRegister(aImplementationClass: TInterfacedClass; const aInterfaces: array of PTypeInfo;
aInstanceCreation: TServiceInstanceImplementation=sicSingle): TServiceFactoryServer; overload; virtual;
function ServiceRegister(aSharedImplementation: TInterfacedObject; const aInterfaces: array of PTypeInfo): TServiceFactoryServer; overload; virtual;
function ServiceRegister(aClient: TSQLRest; const aInterfaces: array of PTypeInfo; aInstanceCreation: TServiceInstanceImplementation=sicSingle;
const aContractExpected: RawUTF8=''): boolean; overload; virtual;
But only one of these methods allows specify a parameter: aContractExpected
Is possible to add aContractExpected parameter to second method too (with aSharedImplementation: TInterfacedObject parameter)?
In this way:
function ServiceRegister(aSharedImplementation: TInterfacedObject; const aInterfaces: array of PTypeInfo;
const aContractExpected: RawUTF8=''): TServiceFactoryServer; overload; virtual;
best regards
Offline
I've added aContractExpected optional parameter to ServiceRegister() and ServiceDefine() methods.
See http://synopse.info/fossil/info/4daa1c78ef
Offline
Thx! :-)
Offline