Can I (somehow) use Rx from a non-Rx-Client (i.e. pure REST etc.) from an .NET Micro Framework or CF
-
Friday, November 23, 2012 11:38 AM
Hi, I recognize why Rx is not itself available on the .NET Micro Framework or Compact Framework. However, I was wondering if anybody can provide an example of a non-Rx client pushing to an Rx-server. Is there a simplified subset of the Rx protocol that we can generate using widely-available WebRequests/REST technology on the .NET MF client to push remote events to the Rx-server and still be able to use Rx glory on the server (MVC for example).
thanks for a quick tip. Is this a hair-brained idea? Any other brilliant ideas? :-)
Thanks!
Rich
Hubert-Associates.eu
All Replies
-
Friday, November 23, 2012 2:09 PM
Yes, it's possible, but I am not sure what you'd have to do to get things running, since I haven't touched either .NET Micro or the Compact Framework for years now.
You could use RxJs, if JavaScript is supported on your client (isn't it everywhere now? Not sure....), or Rx++, the C/C++ version of the libraries. Since it's open source now, you could make your own client libraries from Rx++.
As for pushing queries to the server, check out PushQA - it's an IQbservable implementation that uses REST and OData ... at the very least, you can get some good ideas about how you might do it. Note that on the client side, he shows you can easily use SignalR on the client side, so you do not need client side Rx libraries, but it makes things a lot nicer, imo. :)
Richard Hein
- Edited by Richard Hein Friday, November 23, 2012 2:12 PM
-
Friday, November 23, 2012 2:24 PM
Good tips. We're using .NET MF which is C# on netduino gadgeteer arduino, but the C# is "stripped down" -- both the generic types and the build-in extensibility required by RxC# are missing. C++ may be an option with CF, not sure. I thought about javascript too. I'll need to look into the impedance-wall between a javascript-machine in .NET MF and the C# core. If anybody has tips here? And I'll take a look at PushQA/SignalR and see if they will run on .NET MF.
Thanks!
Rich
Hubert-Associates.eu
- Edited by Hubert-Associates Friday, November 23, 2012 2:26 PM

