Rx Enabled

Topics: Technical Support
Nov 18, 2013 at 6:30 AM
I am new to Zyan.

I am wondering if this is Rx enabled? It does say Linq enabled on the main page.
Coordinator
Nov 18, 2013 at 9:28 AM
Hi sirinath.

I've never used RX in my projects.
To answer your question I need to know what usage scenario are you asking about.
 
It does say Linq enabled on the main page.
 
Yes, Zyan supports LINQ. It means that if you server component has method such as
public IQueryable<T> GetTable<T>()
{
     return myDataContext.GetTable<T>();
}
you can create a proxy for it on the client and use it in a LINQ query:
var proxy = zyanConnection.CreateProxy<IMyDataContext>(); // your service interface name
var query = 
    from u in proxy.GetTable<User>() 
    where u.Name.StartsWith('Bozo')
    select u;
var bozos = query.Count(); // execute remote LINQ query and get the result
Your LINQ expression will be serialized and sent across the wire, executed on server and transferred back to client.
But this feature has nothing to do with RX.

You can use RX to wrap around events on the client side.
Zyan will transfer events raised by server component to your client-side proxy and raise them just like as normal local events.
You can create observable wrapper for them and use it in your LINQ queries.
This scenario should work, but I'm not sure if that's what you're talking about?
Nov 19, 2013 at 1:13 PM
Rx is similar to Linq but mainly for streaming push data: rx.codeplex.com
Coordinator
Nov 19, 2013 at 1:32 PM
I know what is RX, I just haven't used it in a real-world applications.
That's why I asked you for your usage scenario.
I.e. what exactly are you going to do with RX.