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

Can a System.Web.Http endpoint be an IObservable?

Can a System.Web.Http endpoint be an IObservable? Can it be done while still using Attributes such as Route and AcceptVerbs? Basically, I want to make the following code example into an IObservable stream so I'm subscribing and handling it via…
Chip
  • 1,439
  • 3
  • 15
  • 29
0
votes
1 answer

'Sliding' RX.net .Throttle() Window

I have somewhat of a special need / requirement for an observable stream that goes a bit beyond normal throttling and I am not entirely sure how to do it: Basically I have an observable Stream originally from a normal event like so: var…
Jörg Battermann
  • 4,044
  • 5
  • 42
  • 79
0
votes
1 answer

Why does Replay method prevent Observable collection from completing?

I have a slow running task to execute on a list of items. This is what I'm trying to achieve: Processing should start immediately Max of N Concurrent tasks Task should only be run once per item All subscribers should see all results (regardless of…
Kelly Robins
  • 7,168
  • 6
  • 43
  • 66
0
votes
1 answer

Reactive Extensions ToEnumerable how to dispose observable state if not iterating everything

If I use the ToEnumerable extension on an IObservable, there is a chance the user will not iterate all of the elements. In that case how can the IDisposable declared in Observable.Create be properly disposed? For the sake of argument let's say that…
David S.
  • 5,965
  • 2
  • 40
  • 77
0
votes
1 answer

How to filter an Observable where child observable has at least x items

Given an IObservable of objects which have an IObservable child property, how do I go about filtering the main observable to only include instances where the child property has at least X number of items. For example the following test case has an…
1adam12
  • 985
  • 5
  • 13
0
votes
1 answer

Rx.Net: observe asynchronous events indifinitely

I have a helper class that saves text messages to the local file system. This method returns a Task object, and is asynchronous by definition. I want to be able to observe when this method gets called, so I can continuously monitor the size and…
Luis Delgado
  • 3,644
  • 4
  • 34
  • 54
0
votes
0 answers

Rx.NET batching by condition, min and max timer

I'm doing batching of messages in stream want to do it by 3 conditions: if batcher can't add incoming message (for whatever internal logic of batcher) if there were messages and then no messages within X seconds (basically what throttle does) if…
0
votes
1 answer

Retry tpl dataflow with/without Rx

I am using .net reactive extension with TPL dataflow. Here is my pipeline: I am getting data points as stream from some external source and then I am transforming data points using dataflow TransformBlocks. After this I am using Rx buffer to buffer…
Abhay
  • 928
  • 1
  • 10
  • 28
0
votes
1 answer

Rx.NET does not firing onError nor onComplete

I'm studying Rx.NET and in the sample code below I'm trying to perform an async task observing date time picker value changed event. The onNext runs perfectly but onError and onComplete do not. What am I doing wrong? private void…
0
votes
2 answers

C# method catch in rx net

i have service which working on cron expresions public Task DoProcessAsync() { return transactionService.CommitAsync(() => DoProcess()); } private async Task DoProcess() { try{...} …
Dima Grigoriev
  • 357
  • 5
  • 22
0
votes
1 answer

.NET Tasks that wait for work

I want to create threads on the server that wait for work. I want 1 thread per user that visits the site. It works creating a while loop with thead.sleep(100) but that seems not efficient. We keep track of each task that belongs to each visitor so…
flieks
  • 175
  • 1
  • 3
  • 13
0
votes
3 answers

Update view - Reactive Extensions

I've got following code: Observable.Interval(TimeSpan.FromMilliseconds(2500)).SubscribeOn(XXX).ObserveOn(YYY).Subscribe( t => SendCounter(t), e => HandleException(e)); Where XXX, YYY are Schedulers. Inside…
Marcin Bortel
  • 1,190
  • 2
  • 14
  • 28
0
votes
1 answer

How to get latest sequence element inside the Timeout extension?

I wonder what is the best way to get the latest element in a sequence before the Timeout fires? I have a code that ping the remote services from time to time and I want to be able to identify one that has gone offline. Using the Timeout extension I…
Dmitrii
  • 321
  • 6
  • 17
0
votes
2 answers

Rx Twitter Stream stops on entering the third search topic

I tried to rebuild the Twitter example by Jonathan Worthington from this video: https://www.youtube.com/watch?v=_VdIQTtRkb8 It starts out working fine. But after a while the Stream stops. On the third search topic entered the app doesn't recieve any…
leifbattermann
  • 622
  • 7
  • 12
0
votes
0 answers

“collections were modified enumeration operation may not execute” in Class diagram

I want to understand the Rx code better by using its UML diagram. Then I use VS2013 community to generate it. But it failed. A dialogue occurs with the sentence "collections were modified;enumeration operation may not execute". What is the reason?…
Tyoshi
  • 9
  • 2
1 2 3
17
18