Using Rx with WCF ?
-
Tuesday, January 29, 2013 1:00 PM
Hello World
I want to using Rx in my current Silverlight 5 project. I want to load data from WCF Services i did not find any good example for that please let me know how to do that using Rx. I am using 2.0 version of Rx. I have tried FromEvent<> but did not get success.
i found this on net
IObservable<IEvent<GetCustomersCompletedEventArgs>> observable = Observable.FromEvent<GetCustomersCompletedEventArgs>( client, "GetCustomersCompleted" ).Take(1);
but i did not find IEvent<> in my dlls of Rx. Please let know how to use this kind of Service method not begin and end pattern.
All Replies
-
Thursday, January 31, 2013 2:41 PM
Hi,
Make sure that you reference all of the following DLLs for Silverlight 5. I recommend using the Rx NuGet Package.
- System.Reactive.Interfaces.dll
- System.Reactive.Core.dll
- System.Reactive.Linq.dll
- System.Reactive.PlatformServices.dll
Then take a look at this discussion:
http://social.msdn.microsoft.com/Forums/en-US/rx/thread/3d38a15d-35f3-4993-97df-bdc435b2785b
- Dave
-
Wednesday, February 13, 2013 5:50 AM
Hello
Thanks for reply. All i need to call the service method using Rx. I have added all Reference using NuGet Packages Manager. Can you me give me an example for that. i am unable to find IEvent in dlls
-
Wednesday, February 13, 2013 1:46 PM
Hi,
You want to use IEventPattern<T>. I think IEvent<T> was the old name in the original beta releases.
- Dave

