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

Rx.Net Using Observable.Create instead of Subject

I have code that uses a subject to create an observable. I'm able to pass in a value to the observable stream using subject.onNext(value). The problem is if I subscribe to that observable after a value was passed in, I would like to still get that…
0
votes
0 answers

How to receive callbacks by using Rx.NET?

Suppose I have 3 student ids. Things I want to do: Fetch 3 students information asynchronously. If callback not comes within 4 seconds it will retry for three times for that network call. Here is my code: Dictionary
user246186
  • 39
  • 4
0
votes
0 answers

How to handle manually IDisposable in Rx.Net

Sometimes we need to implement IObservable interface. So, we need to handle onNext, onCompleted and onError methods manually. Then, we return a IDisposable object from our own implemented Subscribe method. But, unsubscribed or memory management do…
user3127212
  • 27
  • 1
  • 11
0
votes
1 answer

Reactive Extensions for .NET Developers

I found some information about this but I have several confusion regarding this. So when we need to use this RX.NET. What are the important of using this items? When I need to use this?
0
votes
2 answers

Rx.NET Take an element and subscribe again after some time

I need a kind of throttling, which works a bit differently. I need to get an element from a sequence, unsubscribe and subscribe again in 1 sec. In other words, I want to ignore all elements during 1 sec after a first element is taken: Input: (1)…
Evgeny
  • 631
  • 6
  • 17
0
votes
1 answer

Mobile keyboard 'Shift' toggle like functionality using RX.Net

Working on a project where I need to emulate the functionality of the 'Shift' button on mobile keyboards; i.e., when pressed it toggles the shift state to on and then after another key is pressed it returns to off, but when held it remains on while…
Tyler Hundley
  • 859
  • 5
  • 11
0
votes
2 answers

Notifying asynchronous subject from another observable using Rx .NET

I'm trying to notify listeners who subscribed to Subject _sub from another observable and after that log some message in Do handler. I'm calling OnNext and everything would work fine if _sub wasn't asynchronous. The problem here is that there is no…
MistyK
  • 6,055
  • 2
  • 42
  • 76
0
votes
1 answer

Extensible Combination of Observables

I'd like to store IObservables of Lists in a container and subscribe to a combination of these observables retrieving a merged List. Then I would like to be able to add more Observables without having to renew the subscription and still get the new…
Daniel
  • 597
  • 11
  • 19
0
votes
0 answers

Rx.Net - Convert function variable to Observable stream

I have a method that is actually a listener on some queue. The input to that method is just a .NET class. My question is how do I convert the input to an observable stream inside that method? I have the below, but does this create a new observable…
Gautam T Goudar
  • 271
  • 3
  • 12
0
votes
1 answer

Is it safe to await a Task in OnNext() method of an Observer?

I have created a custom Observer which basically execute an async Task in its OnNext() method. I'm wondering if it's a good idea to do it having in mind async void is not great. public class MessageObserver : IObserver { private…
user4856537
0
votes
0 answers

Execution order in Rx.NET, ReactiveUI

What will be the good solution in Rx.NET and/or ReactiveUI for this case: There is single MainDateTimeRange object and its StartDateTime and EndDateTime are observed by a number of objects-subscribers. When the period changes then the subscribers…
0
votes
1 answer

ReactiveUI - How to share a Property?

I'm having an issue have a property shared between two derived ViewModels: public abstract class MyBaseViewModel : ViewModelBase { private string _sharedProperty; public string SharedProperty { get => _sharedProperty; set…
Maximus
  • 1,441
  • 14
  • 38
0
votes
1 answer

Delayed display of a UI control after execution of ReactiveCommand

I have a reactive command readCommand that I execute based on a signal. IObservable readSignal = ... readSignal.InvokeCommand(readCommand); The result of the command is shown in a user control, let's say a TextBox. I would like to place a…
resp78
  • 1,414
  • 16
  • 37
0
votes
2 answers

Events generated through ReactiveCommand run in unexpected order

I have a problem where I see events running after I expect all events to be completed. But that happens only when the method called is called by a ReactiveCommand. I have a viewmodel that has one property and a calculated property: public class…
0
votes
2 answers

Invoke reactive command repeatedly till a condition is met

I am using ReactiveUI for a UWP app and have two commands CommandA and CommandB. CommandA when invoked attempts to make changes to the hardware. CommandB when invoked reads the hardware and provides the latest value. I would like to invoke the…
resp78
  • 1,414
  • 16
  • 37