Here is a use case. I need to:
- Invoke JavaScript from .NET (C#) code
- JavaScript won't be compile, it comes from a dynamic source
- I need to pass .NET objects to that javascript code, preferable a dynamic object
- I also need to receive objects back from this javascript code
- I need this code to run in WPF (Windows 7) & Windows Store (WinRT)
So far I've only seen activation of Windows Script Engines (i.e. IActiveScript) or using open source project.
I would prefer to stay clear of Open Source project and would prefer to use IE JavaScript engine (Chakra). Windows Script Engine doesn't seems to work on WinRT. I can live with hosting a browser in my app as it is a UI app.
Code doesn't need to be identical in WPF & WinRT (I can write something to wrap the two implementation behind an common interface).
How can I do that?