You are not logged in.
Pages: 1
On server-side, I sometimes need to execute interface functions. I know that, if the function name is known at design-time, I can get an instance of the interface and run it like so:
Server.Service<ICalculator>.Add(10,20)
Is it possible to run Calculator.Add if the function name is only known at runtime (stored externally as a string)? I already verify that the interface is registered and that the function exists.
InterfaceFactory.Methods[I].InterfaceDotMethodName
Offline
I does not make much sense, since the name is just a small part of the needed information: you need full explicit parameter list to actually call or fake the method call.
Just add a string parameter to your interface, or use a method-based service.
Offline
Pages: 1