huysentruitw / SapNwRfc

SAP NetWeaver RFC library for .NET 5, .NET Core and .NET Framework
MIT License
148 stars 43 forks source link

compile once, after the change of the function to use dynamic configuration? #78

Open basis100 opened 1 year ago

basis100 commented 1 year ago

Dear campersau: I want to make a configuration of the NCO program(adapter), but NCO function parameters must be defined by the class, I want to compile once, after the change of the function to use dynamic configuration, I do not know whether it can be achieved?

thanks a lot.

campersau commented 1 year ago

Function parameters can currently not be dynamic. You can of course have multiple different classes for parameters and choose based on some configuration which one to use, but these must be defined at compile time. Maybe #55 can be extended to support System.Dynamic.ExpandoObject for parameters.

basis100 commented 1 year ago

Dear campersau:

I looked the #55 about client call mode to use "support System.Dynamic.ExpandoObject for parameters".

but I tested my server call mode code, there is a error: "The SEND ID definition is not included"

Whether need you in "function.GetParameters"(server call mode) add dynamic ability ?

yyyyyyyy