I just started a project what is to embed Chakracore into .Net application.
The main goal of application is to run realtime hosting. The application is to get javascript code from client side and process external objects with it.
The external object is supposed to be complicated .NET type.
But I have some difficulties in passing the external object into javascript context.
I tired below code and ran javascript code to see the test object exists.
But the result showed the object exits but no property for the object at all even thou the test object had data members.
JavaScriptValue global = JavaScriptValue.GlobalObject;
Test test = new Test();
GCHandle handle = GCHandle.Alloc(test);
IntPtr ptr = (IntPtr)handle;
Hi,
I just started a project what is to embed Chakracore into .Net application.
The main goal of application is to run realtime hosting. The application is to get javascript code from client side and process external objects with it.
The external object is supposed to be complicated .NET type.
But I have some difficulties in passing the external object into javascript context.
I tired below code and ran javascript code to see the test object exists.
But the result showed the object exits but no property for the object at all even thou the test object had data members.
Can anyone tell me how to implement this or give me any good example?
Thanks,