1

I am able to access object methods by following samples provided in https://github.com/JohnMasen/ChakraCore.NET but couldn't find a way to bind variables in the object. Is there a way to bind properties and variables? And, is there a better approach to expose the whole object rather than binding each method?

context.ServiceNode.GetService<IJSValueConverterService>().RegisterProxyConverter<DebugEcho>( //register the object converter
        (binding, instance, serviceNode) =>
        {
           binding.SetMethod<string>("echo", instance.Echo); //js: [object].echo=function(s){[native code]}

    });
Suma Chaganti
  • 155
  • 1
  • 9

0 Answers0