Questions tagged [rx.net]

The Reactive Extensions (Rx) is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators.

The Reactive Extensions (Rx) is a library for composing asynchronous and event-based programs using observable sequences and LINQ-style query operators. Using Rx, developers represent asynchronous data streams with Observables, query asynchronous data streams using LINQ operators, and parameterize the concurrency in the asynchronous data streams using Schedulers. Simply put, Rx = Observables + LINQ + Schedulers.

Resources:

264 questions
0
votes
1 answer

The Observable.Repeat is unstoppable, is it a bug or a feature?

I noticed something strange with the behavior of the Repeat operator, when the source observable's notifications are synchronous. The resulting observable cannot be stopped with a subsequent TakeWhile operator, and apparently continues running…
Theodor Zoulias
  • 34,835
  • 7
  • 69
  • 104
0
votes
1 answer

How Rx.Net Observable.FromEventPattern working

I am interested in the Rx.Net. And looking at the [https://learn.microsoft.com/en-us/previous-versions/dotnet/reactive-extensions/hh211731(v=vs.103)][1] [1]: Observable.FromEventPattern method. The two parameters: addHandler and removeHandler…
Peng Dai
  • 3
  • 1
0
votes
1 answer

GroupJoin with one single window ending on completion of streams

I have two sources of data which are dumping data from separate thread. I am trying to join both sources by a key. I am able to do it using GroupJoin. I have to use Observable.Never so that window never ends. Everything is working fine in terms of…
Viru
  • 2,228
  • 2
  • 17
  • 28
0
votes
1 answer

Transform Observable.Timeout

I have two observables: Total process timeout (Observable 1) Current action timeout (Observable 2) The second one makes use of the timeout extension method. The only thing I want to do is to throw my own exception instead of the default timeout…
Uli
  • 9
  • 2
0
votes
1 answer

Rx.Net Window function extension to support count, time AND size

Actually I have an IObservable and want to window it not only on arrays count and time frame but also on the overall size of arrays passed the current window. Please provide me with these techniques
Oleg Dok
  • 21,109
  • 4
  • 45
  • 54
0
votes
0 answers

Rx.net behavior changing (possibly violating implicit Reactive contract) when using 2nd SubscribeOn

I'm trying to understand the changing behavior when I uncomment the 2nd SubscribeOn. In this case, I hit the line throwing exception. Can someone provide me with an answer - if it is intended behavior and why? Without 2nd SubscribeOn it takes 30+…
Oleg Dok
  • 21,109
  • 4
  • 45
  • 54
0
votes
2 answers

Mocking IScheduler for unit testing

I'm trying to test rx.net code and I'm totally confused how to go about it. An example from this website was quite helpful, but I'm unable to connect the final piece. Below is a sample code: class SomeClass { constructor(IScheduler scheduler) …
David Blay
  • 527
  • 1
  • 3
  • 14
0
votes
1 answer

How to get ReactiveUI WhenAnyValue to emit when property is changed outside the setter of class

I am wondering how I could still trigger ReactiveUI's WhenAnyValue with a property that could be changed outside of the setter of the property in the class. Please excuse the example just tried to make something quick to get the point across. Lets…
JMIII
  • 320
  • 2
  • 16
0
votes
2 answers

.NET ReactiveExtensions: Use Sample() with variable timespan

Given a high-frequency observable stream of data, i want to only emit an item every XX seconds. This is usually done in RX by using .Sample(TimeSpan.FromSeconds(XX)) However... I want the time-interval to vary based on some property on the…
Carsten Gehling
  • 1,218
  • 1
  • 13
  • 31
0
votes
1 answer

Merging multiple observables and updating existing subscribers?

How do I aggregate hot observables which may or may not have subscribers into a new observable and continue to provide all new data to existing subscribers? As an example, imagine we have some class like this: class SomeClass { …
0
votes
0 answers

Xamarin.Forms + ReactiveUI Picker not updated from ViewModel to View even when I am using Bind in iOS only

I'm using Reactive UI to bind Xamarin.Forms Picker SelectedItem to ViewModel property. (using Bind(), two ways binding). When I set the "Event" property in the ViewModel (after populating the SourceCache list) should update the selected item in the…
0
votes
1 answer

RxNet TestScheduler and Windowing not doing what I expected

I have been trying to learn ReactiveUI + RxNet lately... I love them both and they are quite mind bending... I have been reading 'Programming Reactive Extensions and Linq' and it includes this code snippet (modified so that it uses the latest…
Muhammad Azeez
  • 926
  • 8
  • 18
0
votes
0 answers

Need to Zip two observables together

I am trying to combine two observable sequences. Source1 = Observable Source2 = Observable> for Refernce LinqPad code var interval = Observable.Interval(TimeSpan.FromSeconds(0.5)).Take(20); var interval2 =…
Himanshu
  • 15
  • 3
0
votes
1 answer

Installing rx.net in .net4.0 project without nuget

I have a c# .net 4.0 project that is developing on disconnected machine, so I cannot use nuget, but I can download software from the internet on other connected machine and move it to the disconnected one. 1. Which version of reactive extension…
Ohadra
  • 19
  • 4
0
votes
1 answer

Rx merge operator and parallel execution

Why does the .Merge operator behave like .Synchronize? I have two streams of events, each emitting values in different threads (for example using Observable.Interval). After using the .Merge operator they lock each other in long operator (with only…