-
Notifications
You must be signed in to change notification settings - Fork 278
Converting expando object to typed object #38
Comments
If we could acess the raw JSON data from |
@Remo thanks for pointing that out. Chromely was designed to be extremely lightweight - only using external libraries when it is extremely required. I chose LitJSON because it was easier to embed. I wanted developers to use any Json serializer of their choice. Yes, the approach you suggested is in line with Chromely design approach, and I will look into integrating that in the future. |
@Remo I tested the demos using JavaScriptSerializer as you suggested. For CefSharp, this only works successfully for .NET Javascript Integration (Bounded objects) demos. CefGlue demos have similar issue - does not work for all demos. Each IPC communication type processes data differently. For other demos to work, I had to do some tweaking. Since the DemoController is used for all IPC communication types .NET/Javascript integration, Generic Message Routing, Ajax HTTP/XHR and Websocket - it is advisable to leave it the way it is for consistency across demos. Developers can then use approaches that suit their implementations |
@Remo you are welcome. Sure I will look at the PR. Will be by weekend, currently out of town. However, this is what I did too. The DemoController is for all IPC modes of communication, and as long as the PR works for all of them (NET/Javascript integration, Generic Message Routing, Ajax HTTP/XHR and Websocket ), then we will be fine. For us to be on same page, when you said you tested CefGlue and CefSharp worked for you, all IPC demos? Each has at least 2 demo options. CefGlue has Websocket. I will retest to see what I may be missing. I will keep you posted. Thanks. |
@mattkol I've tested the |
I'm playing around with chromely, pretty impressed so far, but one thing bothered me. Here we are working with an expandobject: https://github.com/mattkol/Chromely/blob/master/angular-react-vue/ChromelyVueCefSharp/Controllers/DemoController.cs#L96-L116
Having my backend in .NET I very much prefer to use typed objects. In case anyone else wants to do the same
You can now work with
movies
in a nice way.The text was updated successfully, but these errors were encountered: