TROCodegen4 + AsyncSupport Property = '0' seems not to work

Hi

I tried to disable the AsyncSupport for the TROCodegen4 Generate methods.

(background: for large projects, the Async section does only overfill the INTF files and we have not implemented the RO Async Logic in the backend).

gen:= TROCodegen4.Create; ...
gen.AsyncSupport:= '0';
...
var aResFiles := gen.Generate(..., cg4l_Delphi, cg4m_Intf);
...

but somehow, the switch has no influence on the INTF file.
Further debugging into RemObjects_SDK_CodeGen4_TLB is not possible.

I would appreciate a hint, on the exact usage of the parameter.

best regards

Hi,

this option is valid only for .NET codegen :

Delphi specific keys are started with Delphi:

    property DelphiFullQualifiedNames: string index 7 read GetAddParam write SetAddParam;
    property DelphiScopedEnums: string index 8 read GetAddParam write SetAddParam;
    property DelphiLegacyStrings: string index 9 read GetAddParam write SetAddParam;
    property DelphiAsyncCallback_as_reqular_method: string index 12 read GetAddParam write SetAddParam;
    property DelphiHydra: string index 13 read GetAddParam write SetAddParam;
    property DelphiXE2Mode: string index 15 read GetAddParam write SetAddParam;
    property DelphiFPCMode: string index 16 read GetAddParam write SetAddParam;
    property DelphiCodeFirstMode: string index 17 read GetAddParam write SetAddParam;
    property DelphiGenericArrayMode: string index 18 read GetAddParam write SetAddParam;

You can check github page of this project: GitHub - remobjects/ROCodeGen: The code generation logic for RemObjects Remoting SDK.

Thank you for the fast answer. That means, I have to rephrase my question to

is there a way to turn off for Delphi Service "intf " the async Interface generation (using TROCodegen4)

means “not to produce”
Ixxx_Async = interface(IROAsyncInterface)
Ixxx_AsyncEx = interface(IROAsyncInterfaceEx)

regards

Logged as bugs://D19508.

bugs://D19508 was closed as fixed.

Hi,

this will work for Delphi/CBuilder codegen

cool - thank you! Will use this new feature as soon as the next stable version is shipped!

Hi,

You can build rodl2code and use codegen w/o waiting.

I assume, I would need “Elements” to build rodl2code? But anyhow, the problem is not blocking for us and I can wait.

Hi,

Yes, we have used Elements for creating it.